minor fix, that makes sure a time_left value is set, if you want to test a level.
authorTobias Gläßer <tobi.web@gmx.de>
Sat, 8 May 2004 12:16:06 +0000 (12:16 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Sat, 8 May 2004 12:16:06 +0000 (12:16 +0000)
SVN-Revision: 1043

src/leveleditor.cpp

index 6ae7cab..352afd0 100644 (file)
@@ -1513,6 +1513,10 @@ void le_change(float x, float y, int tm, unsigned int c)
 
 void le_testlevel()
 {
+  //Make sure a time value is set when testing the level
+  if(le_world->get_level()->time_left == 0)
+  le_world->get_level()->time_left = 250;
+  
   le_world->get_level()->save("test", le_level);
 
   GameSession session("test",le_level, ST_GL_TEST);