diff --git a/polymer/eduke32/build/include/editor.h b/polymer/eduke32/build/include/editor.h index d0978f980..e74ec38d2 100644 --- a/polymer/eduke32/build/include/editor.h +++ b/polymer/eduke32/build/include/editor.h @@ -116,6 +116,9 @@ int32_t yax_is121(int16_t bunchnum, int16_t getfloor); extern void M32_DrawRoomsAndMasks(void); +extern void yax_tweakpicnums(int32_t bunchnum, int32_t cf, int32_t restore); // editor-only +extern void M32_ResetFakeRORTiles(void); + extern int32_t kopen4loadfrommod(const char *filename, char searchfirst); // set to 1 to enable: diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index fd18d457e..9832b14d0 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -437,6 +437,25 @@ static void m32_keypresscallback(int32_t code, int32_t downp) VM_OnEvent(EVENT_KEYPRESS, -1); } +void M32_ResetFakeRORTiles(void) +{ +#ifdef POLYMER +# ifdef YAX_ENABLE + // END_TWEAK ceiling/floor fake 'TROR' pics, see BEGIN_TWEAK in engine.c + if (rendmode==4 && showinvisibility) + { + int32_t i; + + for (i=0; i