From f4e27ac4cd869c6c2687be795f9c64f6a0593487 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Sat, 8 May 2004 12:16:06 +0000 Subject: [PATCH] minor fix, that makes sure a time_left value is set, if you want to test a level. SVN-Revision: 1043 --- src/leveleditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.11.0