From 4360b89fb5dca1e26276c075d51c50f924367fd3 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 15 Aug 2015 21:28:05 +0000 Subject: [PATCH] M32: Add EVENT_PREDRAW2DSCREEN. git-svn-id: https://svn.eduke32.com/eduke32@5329 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/m32script.h | 1 + polymer/eduke32/build/src/build.c | 2 ++ polymer/eduke32/source/m32def.c | 1 + 3 files changed, 4 insertions(+) diff --git a/polymer/eduke32/build/include/m32script.h b/polymer/eduke32/build/include/m32script.h index aa2731b93..a5111d731 100644 --- a/polymer/eduke32/build/include/m32script.h +++ b/polymer/eduke32/build/include/m32script.h @@ -92,6 +92,7 @@ enum GameEvent_t { EVENT_SAVEMAP, EVENT_PRELOADMAP, EVENT_PRESAVEMAP, + EVENT_PREDRAW2DSCREEN, MAXEVENTS }; diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index ade115f67..0d631fead 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -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)); diff --git a/polymer/eduke32/source/m32def.c b/polymer/eduke32/source/m32def.c index 489b4b6ee..22bd7a880 100644 --- a/polymer/eduke32/source/m32def.c +++ b/polymer/eduke32/source/m32def.c @@ -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);