projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea9896
)
Fixed strange error with saved Tux' state getting reset when quitting to the title...
author
Christoph Sommer
<mail@christoph-sommer.de>
Mon, 16 Apr 2007 17:54:15 +0000
(17:54 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Mon, 16 Apr 2007 17:54:15 +0000
(17:54 +0000)
SVN-Revision: 4987
src/worldmap/worldmap.cpp
patch
|
blob
|
history
diff --git
a/src/worldmap/worldmap.cpp
b/src/worldmap/worldmap.cpp
index
8cc033f
..
2f5d3aa
100644
(file)
--- a/
src/worldmap/worldmap.cpp
+++ b/
src/worldmap/worldmap.cpp
@@
-178,8
+178,6
@@
WorldMap::~WorldMap()
{
using namespace Scripting;
- save_state();
-
for(GameObjects::iterator i = game_objects.begin();
i != game_objects.end(); ++i) {
GameObject* object = *i;
@@
-875,9
+873,12
@@
WorldMap::setup()
void
WorldMap::leave()
{
- // remove worldmap_table from roottable
using namespace Scripting;
+ // save state of world and player
+ save_state();
+
+ // remove worldmap_table from roottable
sq_pushroottable(global_vm);
sq_pushstring(global_vm, "worldmap", -1);
if(SQ_FAILED(sq_deleteslot(global_vm, -2, SQFalse)))