projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fixed it so arm is not drawn when Tux is shooting and ducking
[supertux.git]
/
src
/
world.cpp
diff --git
a/src/world.cpp
b/src/world.cpp
index
d8a4f7c
..
9ba5d18
100644
(file)
--- a/
src/world.cpp
+++ b/
src/world.cpp
@@
-203,7
+203,8
@@
World::action(float elapsed_time)
* during the iteration)
*/
for(size_t i = 0; i < gameobjects.size(); ++i)
- gameobjects[i]->action(elapsed_time);
+ if(gameobjects[i]->is_valid())
+ gameobjects[i]->action(elapsed_time);
/* Handle all possible collisions. */
collision_handler();