mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 23:21:43 +00:00
- fixed "pointers to temporary" errors reported by XCode
This commit is contained in:
parent
e7ddc4178a
commit
8babdd6296
1 changed files with 4 additions and 2 deletions
|
@ -117,7 +117,8 @@ void DoLoadGame(const char* name);
|
|||
void G_BuildTiccmd(ticcmd_t* cmd)
|
||||
{
|
||||
I_GetEvent();
|
||||
gi->GetInput(&cmd->ucmd, &CONTROL_GetInput());
|
||||
auto input = CONTROL_GetInput();
|
||||
gi->GetInput(&cmd->ucmd, &input);
|
||||
cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS];
|
||||
}
|
||||
|
||||
|
@ -511,7 +512,8 @@ void TryRunTics (void)
|
|||
if (!cl_syncinput)
|
||||
{
|
||||
I_GetEvent();
|
||||
gi->GetInput(nullptr, &CONTROL_GetInput());
|
||||
auto input = CONTROL_GetInput();
|
||||
gi->GetInput(nullptr, &input);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue