From 9b1d03d2cc4050bdb7d352191bbfd2824eb81a7b Mon Sep 17 00:00:00 2001 From: plagman Date: Sat, 2 Jan 2010 17:29:31 +0000 Subject: [PATCH] Hook the polymer map selection code to a few more places in the editor code. This will fix the screen turning greenish when selecting a pal with Alt-P. I could just drop the selection from these cases since the cursor can't actually move, but then people would ask why the FPS gets higher in this occurrences. git-svn-id: https://svn.eduke32.com/eduke32@1577 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 9 +++++++++ polymer/eduke32/source/astub.c | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index a4db06c6d..f701b8f74 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -5340,6 +5340,15 @@ int32_t _getnumber256(char *namestart, int32_t num, int32_t maxnumber, char sign ExtAnalyzeSprites(); #endif drawmasks(); +#ifdef POLYMER + if (rendmode == 4 && searchit == 2) + { + polymer_editorpick(); + drawrooms(pos.x,pos.y,pos.z,ang,horiz,cursectnum); + ExtAnalyzeSprites(); + drawmasks(); + } +#endif ch = bgetchar(); diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index ea83189fd..f17808320 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -3843,6 +3843,15 @@ void getnumberptr256(char *namestart, void *num, int32_t bytes, int32_t maxnumbe ExtAnalyzeSprites(); #endif drawmasks(); +#ifdef POLYMER + if (rendmode == 4 && searchit == 2) + { + polymer_editorpick(); + drawrooms(pos.x,pos.y,pos.z,ang,horiz,cursectnum); + ExtAnalyzeSprites(); + drawmasks(); + } +#endif ch = bgetchar(); @@ -4112,6 +4121,15 @@ ENDFOR1: ExtAnalyzeSprites(); #endif drawmasks(); +#ifdef POLYMER + if (rendmode == 4 && searchit == 2) + { + polymer_editorpick(); + drawrooms(pos.x,pos.y,pos.z,ang,horiz,cursectnum); + ExtAnalyzeSprites(); + drawmasks(); + } +#endif ch = bgetchar();