mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-24 09:42:13 +00:00
- Fix issue with memset calls from 0eba341ac1
.
This commit is contained in:
parent
6403c7291f
commit
3951407b68
4 changed files with 8 additions and 8 deletions
|
@ -1202,7 +1202,7 @@ void I_GetJoysticks(TArray<IJoystickConfig*>& sticks)
|
|||
|
||||
void I_GetAxes(float axes[NUM_JOYAXIS])
|
||||
{
|
||||
memset(axes, 0, sizeof(axes));
|
||||
memset(axes, 0, sizeof(float) * NUM_JOYAXIS);
|
||||
|
||||
if (use_joystick && NULL != s_joystickManager)
|
||||
{
|
||||
|
|
|
@ -324,7 +324,7 @@ void I_GetJoysticks(TArray<IJoystickConfig *> &sticks)
|
|||
|
||||
void I_GetAxes(float axes[NUM_JOYAXIS])
|
||||
{
|
||||
memset(axes, 0, sizeof(axes));
|
||||
memset(axes, 0, sizeof(float) * NUM_JOYAXIS);
|
||||
|
||||
if (use_joystick && JoystickManager)
|
||||
{
|
||||
|
|
|
@ -635,7 +635,7 @@ void I_StartFrame ()
|
|||
|
||||
void I_GetAxes(float axes[NUM_JOYAXIS])
|
||||
{
|
||||
memset(axes, 0, sizeof(axes));
|
||||
memset(axes, 0, sizeof(float) * NUM_JOYAXIS);
|
||||
|
||||
if (use_joystick)
|
||||
{
|
||||
|
|
|
@ -436,11 +436,6 @@ void Display()
|
|||
screen->BeginFrame();
|
||||
screen->SetSceneRenderTarget(gl_ssao != 0);
|
||||
//updateModelInterpolation();
|
||||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
gameInput.getInput(inputScale);
|
||||
}
|
||||
gi->Render();
|
||||
DrawFullscreenBlends();
|
||||
drawMapTitle();
|
||||
|
@ -608,6 +603,11 @@ void TryRunTics (void)
|
|||
gi->Predict(myconnectindex);
|
||||
#endif
|
||||
}
|
||||
if (!SyncInput())
|
||||
{
|
||||
I_GetEvent();
|
||||
gameInput.getInput(inputScale);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue