use updatesectorz instead of updatesector for the startsectnum updating when saving a map.

git-svn-id: https://svn.eduke32.com/eduke32@2000 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-09-02 22:15:43 +00:00
parent 5bae16041d
commit decb2a0db1

View file

@ -6916,7 +6916,9 @@ const char *SaveBoard(const char *fn, uint32_t flags)
} }
fixspritesectors(); //Do this before saving! fixspritesectors(); //Do this before saving!
updatesector(startposx,startposy,&startsectnum); updatesectorz(startposx,startposy,startposz,&startsectnum);
if (startsectnum < 0)
updatesector(startposx,startposy,&startsectnum);
ExtPreSaveMap(); ExtPreSaveMap();
ret = saveboard(f,&startposx,&startposy,&startposz,&startang,&startsectnum); ret = saveboard(f,&startposx,&startposy,&startposz,&startang,&startsectnum);
if ((flags&1)==0) if ((flags&1)==0)