M32: Add EVENT_PREDRAW2DSCREEN.

git-svn-id: https://svn.eduke32.com/eduke32@5329 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-08-15 21:28:05 +00:00
parent b8bad00a95
commit 4360b89fb5
3 changed files with 4 additions and 0 deletions

View file

@ -92,6 +92,7 @@ enum GameEvent_t {
EVENT_SAVEMAP,
EVENT_PRELOADMAP,
EVENT_PRESAVEMAP,
EVENT_PREDRAW2DSCREEN,
MAXEVENTS
};

View file

@ -3481,6 +3481,8 @@ void overheadeditor(void)
setup_sideview_sincos();
VM_OnEvent(EVENT_PREDRAW2DSCREEN, -1);
if (graphicsmode && (!m32_sideview || m32_sideelev == 512))
{
Bmemset(show2dsector, 0, sizeof(show2dsector));

View file

@ -3471,6 +3471,7 @@ static void C_AddDefaultDefinitions(void)
C_AddDefinition("EVENT_SAVEMAP", EVENT_SAVEMAP, LABEL_EVENT);
C_AddDefinition("EVENT_PRELOADMAP", EVENT_PRELOADMAP, LABEL_EVENT);
C_AddDefinition("EVENT_PRESAVEMAP", EVENT_PRESAVEMAP, LABEL_EVENT);
C_AddDefinition("EVENT_PREDRAW2DSCREEN", EVENT_PREDRAW2DSCREEN, LABEL_EVENT);
C_AddDefinition("CLIPMASK0", CLIPMASK0, LABEL_DEFINE);
C_AddDefinition("CLIPMASK1", CLIPMASK1, LABEL_DEFINE);