Fix level bug

This commit is contained in:
Miloslav Číž 2021-02-22 19:11:23 +01:00
parent 3b062a1a30
commit 459dd85ee9
6 changed files with 1 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

BIN
bin/Anarch_linux64_csfml_elf_1-02 Executable file

Binary file not shown.

BIN
bin/Anarch_linux64_sdl_elf_1-02 Executable file

Binary file not shown.

1
game.h
View File

@ -3750,7 +3750,6 @@ void SFG_gameStepPlaying()
if (SFG_player.weapon != currentWeapon) // if weapon switched, start cooldown if (SFG_player.weapon != currentWeapon) // if weapon switched, start cooldown
{ {
if (SFG_player.weapon == (currentWeapon + 1) % SFG_WEAPONS_TOTAL) if (SFG_player.weapon == (currentWeapon + 1) % SFG_WEAPONS_TOTAL)
SFG_player.previousWeaponDirection = -1; SFG_player.previousWeaponDirection = -1;
else if (currentWeapon == (SFG_player.weapon + 1) % SFG_WEAPONS_TOTAL) else if (currentWeapon == (SFG_player.weapon + 1) % SFG_WEAPONS_TOTAL)

View File

@ -34,7 +34,7 @@ static const char *SFG_menuItemTexts[] =
#define SFG_TEXT_SAVED "saved" #define SFG_TEXT_SAVED "saved"
#define SFG_TEXT_LEVEL_COMPLETE "level done" #define SFG_TEXT_LEVEL_COMPLETE "level done"
#define SFG_VERSION_STRING "1.01d" #define SFG_VERSION_STRING "1.02"
/**< /**<
Version numbering is following: major.minor for stable releases, Version numbering is following: major.minor for stable releases,
in-development unstable versions have the version of the latest stable + in-development unstable versions have the version of the latest stable +