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
This commit is contained in:
terminx 2007-01-15 00:38:21 +00:00
parent 50d6334304
commit c7def8d139

View file

@ -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)