From a71e87b9df050cbb0dd96912ba3da6d4aab3da8f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 24 Feb 2009 04:13:38 +0000 Subject: [PATCH] - Fixed: player->oldbuttons was copied from the current button set at the end of P_PlayerThink(), well before ACS could ever get at it with GetPlayerInput. SVN r1444 (trunk) --- docs/rh-log.txt | 6 +++++- src/g_game.cpp | 1 + src/p_user.cpp | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index adfc0cdeda..1f05c1f135 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,8 @@ -February 23, 2009 (Changes by Graf Zahl) +February 23, 2009 +- Fixed: player->oldbuttons was copied from the current button set at the end + of P_PlayerThink(), well before ACS could ever get at it with GetPlayerInput. + +February 23, 2009 (Changes by Graf Zahl) - Fixed: The map name display on the automap was incomplete. - Added FakeInventory.Respawns DECORATe property - Fixed: Unsetting the MF5_INCONVERSATION flag did not work when quitting the diff --git a/src/g_game.cpp b/src/g_game.cpp index d78aba1157..1273e023ed 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -989,6 +989,7 @@ void G_Ticker () { G_WriteDemoTiccmd (newcmd, i, buf); } + players[i].oldbuttons = cmd->ucmd.buttons; // If the user alt-tabbed away, paused gets set to -1. In this case, // we do not want to read more demo commands until paused is no // longer negative. diff --git a/src/p_user.cpp b/src/p_user.cpp index b1bf1bfb76..4721ff1fc4 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -2313,9 +2313,6 @@ void P_PlayerThink (player_t *player) } } } - - // Save buttons - player->oldbuttons = cmd->ucmd.buttons; } void P_PredictPlayer (player_t *player)