From: Tobias Gläßer Date: Sat, 8 May 2004 12:16:06 +0000 (+0000) Subject: minor fix, that makes sure a time_left value is set, if you want to test a level. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f4e27ac4cd869c6c2687be795f9c64f6a0593487;p=supertux.git minor fix, that makes sure a time_left value is set, if you want to test a level. SVN-Revision: 1043 --- diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 6ae7cab61..352afd038 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -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);