projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7063c2
)
minor fix, that makes sure a time_left value is set, if you want to test a level.
author
Tobias Gläßer
<tobi.web@gmx.de>
Sat, 8 May 2004 12:16:06 +0000
(12:16 +0000)
committer
Tobias Gläßer
<tobi.web@gmx.de>
Sat, 8 May 2004 12:16:06 +0000
(12:16 +0000)
SVN-Revision: 1043
src/leveleditor.cpp
patch
|
blob
|
history
diff --git
a/src/leveleditor.cpp
b/src/leveleditor.cpp
index
6ae7cab
..
352afd0
100644
(file)
--- 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);