From c7def8d139b425210ec6708be6d64620fb077bf2 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 15 Jan 2007 00:38:21 +0000 Subject: [PATCH] This makes Mapster32 go into 3D mode at startup only if the map's start position is inside of a sector. This means that you won't end up in 3D mode on a blank map anymore if you have an empty newboard.map in your directory. git-svn-id: https://svn.eduke32.com/eduke32@456 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/build.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/polymer/build/src/build.c b/polymer/build/src/build.c index 4b4dcb773..ca0923775 100644 --- a/polymer/build/src/build.c +++ b/polymer/build/src/build.c @@ -370,9 +370,6 @@ int app_main(int argc, char **argv) numsectors = 0; numwalls = 0; cursectnum = -1; - setbrightness(0,palette,0); - overheadeditor(); - keystatus[buildkeys[14]] = 0; } else { @@ -388,6 +385,15 @@ int app_main(int argc, char **argv) startsectnum = cursectnum; // TX 20050225: moved to loadboard totalclock = 0; + + updatesector(posx,posy,&cursectnum); + + if (cursectnum == -1) + { + setbrightness(0,palette,0); + overheadeditor(); + keystatus[buildkeys[14]] = 0; + } CANCEL: quitflag = 0; while (quitflag == 0)