fix `
This commit is contained in:
@@ -463,18 +463,19 @@ void GameLoop()
|
|||||||
//if( fDeltaTime > 0.050f ) // we dropped a bunch of frames
|
//if( fDeltaTime > 0.050f ) // we dropped a bunch of frames
|
||||||
// fDeltaTime = 0.050f;
|
// fDeltaTime = 0.050f;
|
||||||
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_TAB) ) ) {
|
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_TAB) ) ) {
|
||||||
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_QUOTEDBL) ) )
|
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_BACKQUOTE) ) )
|
||||||
fDeltaTime = 0; /* both; stop time */
|
fDeltaTime = 0; /* both; stop time */
|
||||||
else
|
else
|
||||||
fDeltaTime *= 4;
|
fDeltaTime *= 4;
|
||||||
} else
|
} else
|
||||||
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_QUOTEDBL) ) )
|
if( INPUTMAN->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_BACKQUOTE) ) )
|
||||||
fDeltaTime /= 4;
|
fDeltaTime /= 4;
|
||||||
|
|
||||||
TEXTUREMAN->Update( fDeltaTime );
|
TEXTUREMAN->Update( fDeltaTime );
|
||||||
MUSIC->Update( fDeltaTime );
|
MUSIC->Update( fDeltaTime );
|
||||||
SCREENMAN->Update( fDeltaTime );
|
SCREENMAN->Update( fDeltaTime );
|
||||||
CLIENT->Update( fDeltaTime );
|
CLIENT->Update( fDeltaTime );
|
||||||
|
// SOUNDMAN->Update( fDeltaTime );
|
||||||
|
|
||||||
static InputEventArray ieArray;
|
static InputEventArray ieArray;
|
||||||
ieArray.clear(); // empty the array
|
ieArray.clear(); // empty the array
|
||||||
|
|||||||
Reference in New Issue
Block a user