autoscreenshot fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6998 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2012-12-27 10:39:48 +00:00
parent a3ca90f40a
commit 54d4d949e4
+6 -9
View File
@@ -476,12 +476,6 @@ void mapshot()
bool needsautoscreenshot = false;
void makeautoscreenshot()
{
needsautoscreenshot = false;
screenshot(NULL);
}
COMMAND(screenshot, "s");
COMMAND(mapshot, "");
COMMAND(quit, "");
@@ -1263,7 +1257,12 @@ int main(int argc, char **argv)
if(lastmillis) updateworld(curtime, lastmillis);
if(needsautoscreenshot) showscores(true);
if(needsautoscreenshot)
{
showscores(true);
addsleep(0, "screenshot");
needsautoscreenshot = false;
}
serverslice(0);
@@ -1279,8 +1278,6 @@ int main(int argc, char **argv)
if(frames>4) SDL_GL_SwapBuffers();
}
if(needsautoscreenshot) makeautoscreenshot();
#ifdef _DEBUG
if(millis>lastflush+60000) { fflush(stdout); lastflush = millis; }
#endif