Skip to content

Commit

Permalink
Rednukem: Fix -s command line parameter with values >= 5 when valid
Browse files Browse the repository at this point in the history
Fixes #817
  • Loading branch information
Hendricks266 committed Jun 4, 2024
1 parent a237048 commit 66e9f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rr/src/cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ void G_CheckCommandLine(int32_t argc, char const * const * argv)
break;
case 's':
c++;
ud.m_player_skill = ud.player_skill = (Batoi(c)%5);
ud.m_player_skill = ud.player_skill = clamp(Batoi(c), 0, g_skillCnt);
if (ud.m_player_skill == 4)
ud.m_respawn_monsters = ud.respawn_monsters = 1;
break;
Expand Down

0 comments on commit 66e9f59

Please sign in to comment.