projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42398ef
)
don't remove trampolines twice
author
Matthias Braun
<matze@braunis.de>
Thu, 20 May 2004 23:25:30 +0000
(23:25 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 20 May 2004 23:25:30 +0000
(23:25 +0000)
SVN-Revision: 1288
src/world.cpp
patch
|
blob
|
history
diff --git
a/src/world.cpp
b/src/world.cpp
index
11bc77c
..
46ff60a
100644
(file)
--- a/
src/world.cpp
+++ b/
src/world.cpp
@@
-129,17
+129,10
@@
World::apply_bonuses()
World::~World()
{
- for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i)
- delete *i;
-
for (std::vector<GameObject*>::iterator i = gameobjects.begin();
i != gameobjects.end(); ++i) {
- Drawable* drawable = dynamic_cast<Drawable*> (*i);
- if(drawable)
- displaymanager.remove_drawable(drawable);
delete *i;
}
- bad_guys.clear();
delete level;
}