From 6b913a39aac3c005b8fa4651523b4918b8e6be72 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 21 Dec 2011 18:42:32 +0000 Subject: [PATCH] some more clearbuf -> memset in gamedef.c plus add a forgotten keystatus reset in the editor git-svn-id: https://svn.eduke32.com/eduke32@2191 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 1 + polymer/eduke32/source/gamedef.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 36dd304d1..b5eb70f78 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -3320,6 +3320,7 @@ void overheadeditor(void) if (highlightsectorcnt > 0 && !hl_all_bunch_sectors_p()) { printmessage16("To flip extended sectors, all sectors of a bunch must be selected"); + keystatus[0x2d] = keystatus[0x15] = 0; } else #endif diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 4069c9b59..ff66f9a80 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -5689,9 +5689,9 @@ void C_Compile(const char *filenam) char *mptr; int32_t i; int32_t fs,fp; - int32_t startcompiletime; + uint32_t startcompiletime; - clearbuf(apScriptGameEvent,MAXGAMEEVENTS,0L); + Bmemset(apScriptGameEvent, 0, sizeof(apScriptGameEvent)); C_InitHashes(); Gv_Init();