Allow starfing keys at level end

This commit is contained in:
Miloslav Číž 2020-11-22 12:15:29 +01:00
parent 6a2477f63c
commit 5509546e5b

6
game.h
View File

@ -4025,7 +4025,9 @@ void SFG_gameStep()
}
}
else if (SFG_keyIsDown(SFG_KEY_RIGHT) ||
SFG_keyIsDown(SFG_KEY_LEFT))
SFG_keyIsDown(SFG_KEY_LEFT) ||
SFG_keyIsDown(SFG_KEY_STRAFE_LEFT) ||
SFG_keyIsDown(SFG_KEY_STRAFE_RIGHT))
{
SFG_setAndInitLevel(SFG_currentLevel.levelNumber + 1);
@ -4036,7 +4038,7 @@ void SFG_gameStep()
SFG_playerRotateWeapon(1);
if (SFG_keyIsDown(SFG_KEY_RIGHT))
if (SFG_keyIsDown(SFG_KEY_RIGHT) || SFG_keyIsDown(SFG_KEY_STRAFE_RIGHT))
{
// save the current position
SFG_game.save[0] =