mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- transitioned Duke to the new main loop.
Everything compiles, but hasn't been tested. Doing a safety commit first.
This commit is contained in:
parent
0c455acaa2
commit
d59284c96b
15 changed files with 89 additions and 345 deletions
|
@ -81,6 +81,7 @@
|
|||
#include "v_video.h"
|
||||
#include "glbackend/glbackend.h"
|
||||
#include "palette.h"
|
||||
#include "build.h"
|
||||
|
||||
CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CVAR(Bool, r_ticstability, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
|
@ -183,11 +184,15 @@ static void GameTicker()
|
|||
{
|
||||
default:
|
||||
case GS_STARTUP:
|
||||
artClearMapArt();
|
||||
gi->Startup();
|
||||
break;
|
||||
|
||||
case GS_LEVEL:
|
||||
gameupdatetime.Reset();
|
||||
gameupdatetime.Clock();
|
||||
gi->Ticker();
|
||||
gameupdatetime.Unclock();
|
||||
break;
|
||||
|
||||
case GS_MENUSCREEN:
|
||||
|
@ -371,7 +376,10 @@ void TryRunTics (void)
|
|||
gi->Predict(myconnectindex);
|
||||
#endif
|
||||
}
|
||||
gi->GetInput(nullptr);
|
||||
if (!cl_syncinput)
|
||||
{
|
||||
gi->GetInput(nullptr);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue