From 3674b5087410eeeadf959b1946bad07d3e4ba351 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Sat, 19 Aug 2006 15:30:52 +0000 Subject: [PATCH] prevent spawning SVN-Revision: 4201 --- src/sector.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sector.cpp b/src/sector.cpp index 54e1f91f2..1688aa6bd 100644 --- 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(); -- 2.11.0