projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54769df
)
apparently we get a 0 tile from time to time, no idea yet why
author
Matthias Braun
<matze@braunis.de>
Thu, 29 Apr 2004 13:54:21 +0000
(13:54 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 29 Apr 2004 13:54:21 +0000
(13:54 +0000)
SVN-Revision: 842
src/collision.cpp
patch
|
blob
|
history
diff --git
a/src/collision.cpp
b/src/collision.cpp
index
fc7a902
..
2f41fed
100644
(file)
--- a/
src/collision.cpp
+++ b/
src/collision.cpp
@@
-56,7
+56,7
@@
bool collision_object_map(const base_type& base)
for(int x = starttilex; x*32 < max_x; ++x) {
for(int y = starttiley; y*32 < max_y; ++y) {
Tile* tile = tilemanager.get(level.get_tile_at(x, y));
- if(tile->solid)
+ if(tile
&& tile
->solid)
return true;
}
}