From fc017f58681d5f00ce292177b19aeeca0180b78f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Jun 2020 20:28:57 +0200 Subject: [PATCH] - removed unused editwall variable. --- source/build/include/build.h | 3 +-- source/build/src/engine.cpp | 17 ----------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 37b93a408..00f5c8db1 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -577,6 +577,7 @@ typedef struct { int8_t tileofs[MAXPSKYTILES]; // for 0 <= j < (1<>3]; EXTERN char gotsector[(MAXSECTORS+7)>>3]; -EXTERN char editwall[(MAXWALLS+7)>>3]; - extern uint32_t drawlinepat; extern void faketimerhandler(void); diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 418fef914..05d3f78a5 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -3426,7 +3426,6 @@ static void enginePrepareLoadBoard(FileReader & fr, vec3_t *dapos, int16_t *daan show2dsector.Zero(); Bmemset(show2dsprite, 0, sizeof(show2dsprite)); Bmemset(show2dwall, 0, sizeof(show2dwall)); - Bmemset(editwall, 0, sizeof(editwall)); #ifdef USE_STRUCT_TRACKERS Bmemset(sectorchanged, 0, sizeof(sectorchanged)); Bmemset(spritechanged, 0, sizeof(spritechanged)); @@ -4830,22 +4829,6 @@ void dragpoint(int16_t pointhighlight, int32_t dax, int32_t day, uint8_t flags) } } } - - if (editstatus) - { - int32_t w; - // TODO: extern a separate bitmap instead? - for (w=0; w>3] & pow2char[w&7]) - { - editwall[w>>3] |= 1<<(w&7); - if (flags&2) - { - int wn = lastwall(w); - editwall[wn>>3] |= 1<<(wn&7); - } - } - } } //