X-Git-Url: https://git.octo.it/?p=supertux.git;a=blobdiff_plain;f=src%2Fbadguy%2Fyeti.cpp;h=8d1b49b58b25b75e2bf2d98bbbe0f6dea3f01757;hp=26c47d6f72d5a52e620199bf465216ce7528bf1e;hb=2e163cb10e0a6af504275585e7c31091931dd7b2;hpb=d1119d5126bf39887e83b1e759ecb852a861aa02 diff --git a/src/badguy/yeti.cpp b/src/badguy/yeti.cpp index 26c47d6f7..8d1b49b58 100644 --- a/src/badguy/yeti.cpp +++ b/src/badguy/yeti.cpp @@ -212,6 +212,9 @@ void Yeti::take_hit(Player& ) physic.set_velocity_x(0); physic.set_velocity_y(0); + // Set the badguy layer to be above the foremost, so that + // this does not reveal secret tilemaps: + layer = Sector::current()->get_foremost_layer() + 1; state = SQUISHED; state_timer.start(YETI_SQUISH_TIME); set_colgroup_active(COLGROUP_MOVING_ONLY_STATIC);