- missing global variables.

This commit is contained in:
Christoph Oelckers 2020-10-05 20:44:30 +02:00
parent 4d712cd5a0
commit 29a4955f79
2 changed files with 21 additions and 0 deletions

View File

@ -81,5 +81,6 @@ struct doomcom_t
extern doomcom_t doomcom; extern doomcom_t doomcom;
extern bool netgame, multiplayer; extern bool netgame, multiplayer;
extern int consoleplayer;
#endif #endif

View File

@ -1850,3 +1850,23 @@ bool validFilter(const char* str)
} }
return false; return false;
} }
#include "vm.h"
DEFINE_ACTION_FUNCTION(_Screen, GetViewWindow)
{
PARAM_PROLOGUE;
if (numret > 0) ret[0].SetInt(windowxy1.x);
if (numret > 1) ret[1].SetInt(windowxy1.y);
if (numret > 2) ret[2].SetInt(windowxy2.x - windowxy1.x + 1);
if (numret > 3) ret[3].SetInt(windowxy2.y - windowxy1.y + 1);
return MIN(numret, 4);
}
extern bool demoplayback;
DEFINE_GLOBAL(multiplayer)
DEFINE_GLOBAL(netgame)
DEFINE_GLOBAL(gameaction)
DEFINE_GLOBAL(gamestate)
DEFINE_GLOBAL(demoplayback)
DEFINE_GLOBAL(consoleplayer)