projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Addded property to Worldmap Spawnpoint to let Tux automatically start walking (or...
[supertux.git]
/
src
/
game_object.cpp
diff --git
a/src/game_object.cpp
b/src/game_object.cpp
index
1f75d62
..
ee63ec1
100644
(file)
--- a/
src/game_object.cpp
+++ b/
src/game_object.cpp
@@
-23,7
+23,7
@@
#include "object_remove_listener.hpp"
GameObject::GameObject()
#include "object_remove_listener.hpp"
GameObject::GameObject()
- : wants_to_die(false), remove_listeners(
0), flags(0
)
+ : wants_to_die(false), remove_listeners(
NULL
)
{
}
{
}
@@
-31,10
+31,11
@@
GameObject::~GameObject()
{
// call remove listeners (and remove them from the list)
RemoveListenerListEntry* entry = remove_listeners;
{
// call remove listeners (and remove them from the list)
RemoveListenerListEntry* entry = remove_listeners;
- while(entry !=
0
) {
+ while(entry !=
NULL
) {
RemoveListenerListEntry* next = entry->next;
entry->listener->object_removed(this);
delete entry;
entry = next;
}
}
RemoveListenerListEntry* next = entry->next;
entry->listener->object_removed(this);
delete entry;
entry = next;
}
}
+