- reduce backend's dependency on game state by using callbacks.

This commit is contained in:
Christoph Oelckers 2020-04-11 18:22:21 +02:00
commit 56f2b2ac56
29 changed files with 289 additions and 276 deletions

View file

@ -557,6 +557,13 @@ FBaseCVar* G_GetUserCVar(int playernum, const char* cvarname)
return cvar;
}
static ticcmd_t emptycmd;
ticcmd_t* G_BaseTiccmd()
{
return &emptycmd;
}
//
// G_BuildTiccmd
@ -574,7 +581,7 @@ void G_BuildTiccmd (ticcmd_t *cmd)
ticcmd_t *base;
base = I_BaseTiccmd (); // empty, or external driver
base = G_BaseTiccmd ();
*cmd = *base;
cmd->consistancy = consistancy[consoleplayer][(maketic/ticdup)%BACKUPTICS];