diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 202792890..6627d9e72 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,8 @@ -September 2, 2009 (Changes by Graf Zahl) +September 3, 2009 (Changes by Graf Zahl) +- fixed: Weapons must first check if they can be switched and afterwards + if they can be fired. These checks were reversed. + +September 2, 2009 (Changes by Graf Zahl) - fixed: The newly altered WAD code could not load embedded WADs anymore. September 1, 2009 diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 4eb8b7d3e..ee287a8f1 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -844,14 +844,14 @@ void P_MovePsprites (player_t *player) } player->psprites[ps_flash].sx = player->psprites[ps_weapon].sx; player->psprites[ps_flash].sy = player->psprites[ps_weapon].sy; - if (player->cheats & (CF_WEAPONREADY | CF_WEAPONREADYALT)) - { - P_CheckWeaponFire (player); - } if (player->cheats & CF_WEAPONSWITCHOK) { P_CheckWeaponSwitch (player); } + if (player->cheats & (CF_WEAPONREADY | CF_WEAPONREADYALT)) + { + P_CheckWeaponFire (player); + } } }