sleep/mapstartonce fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3177 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-21 22:17:31 +00:00
parent 3e791bdb9e
commit 17cb4e8aa8
+3 -2
View File
@@ -364,7 +364,8 @@ void updateworld(int curtime, int lastmillis) // main game update loop
sleeps[i].cmd = NULL;
execute(cmd);
delete[] cmd;
if(sleeps.length() > i) sleeps.remove(i--);
if(sleeps[i].cmd || !sleeps.inrange(i)) break;
sleeps.remove(i--);
}
}
@@ -669,7 +670,7 @@ COMMAND(gamemodedesc, ARG_2STR);
void resetmap()
{
//resetsleep();
resetsleep();
clearminimap();
cleardynlights();
pruneundos();