mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 04:24:39 +00:00
- Move I_GetEvent()
call into GameInput::getInput()
.
This commit is contained in:
parent
dc8be29354
commit
f8ee893529
2 changed files with 3 additions and 3 deletions
|
@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
#include "menu.h"
|
||||
#include "gamestate.h"
|
||||
#include "gameinput.h"
|
||||
#include "g_input.h"
|
||||
#include "d_net.h"
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -355,6 +356,8 @@ void GameInput::processInputBits()
|
|||
|
||||
void GameInput::getInput(const double scaleAdjust, InputPacket* packet)
|
||||
{
|
||||
I_GetEvent();
|
||||
|
||||
if (M_Active() || gamestate != GS_LEVEL)
|
||||
{
|
||||
inputBuffer = {};
|
||||
|
|
|
@ -79,7 +79,6 @@
|
|||
#include "v_video.h"
|
||||
#include "palette.h"
|
||||
#include "build.h"
|
||||
#include "g_input.h"
|
||||
#include "mapinfo.h"
|
||||
#include "automap.h"
|
||||
#include "statusbar.h"
|
||||
|
@ -136,7 +135,6 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
|||
savegamefile = "";
|
||||
}
|
||||
cmd->ucmd = {};
|
||||
I_GetEvent();
|
||||
gameInput.getInput(inputScale, &cmd->ucmd);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
@ -612,7 +610,6 @@ void TryRunTics (void)
|
|||
}
|
||||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
gameInput.getInput(inputScale);
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue