projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dbdd25
)
prevent spawning
author
Wolfgang Becker
<uafr@gmx.de>
Sat, 19 Aug 2006 15:30:52 +0000
(15:30 +0000)
committer
Wolfgang Becker
<uafr@gmx.de>
Sat, 19 Aug 2006 15:30:52 +0000
(15:30 +0000)
SVN-Revision: 4201
src/sector.cpp
patch
|
blob
|
history
diff --git
a/src/sector.cpp
b/src/sector.cpp
index
54e1f91
..
1688aa6
100644
(file)
--- a/
src/sector.cpp
+++ b/
src/sector.cpp
@@
-514,6
+514,14
@@
Sector::activate(const Vector& player_pos)
try_expose_me();
player->move(player_pos);
+
+ //spawning bigtux partial in the ground would kill him
+ if(player->is_big() && !is_free_of_tiles(player->get_bbox())) {
+ Vector npos = player_pos;
+ npos.y-=32;
+ player->move(npos);
+ }
+
camera->reset(player->get_pos());
update_game_objects();