From 9efceff57abef5b13d2f480711cf9fa1a27ab1f4 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 18 May 2004 17:46:05 +0000 Subject: [PATCH] Fix bug reported by Ryan: in level smaller than 19, Tux would stay in dead move forever. SVN-Revision: 1256 --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index 64cd31783..dd02bc296 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -799,7 +799,7 @@ Player::is_dying() bool Player::is_dead() { - if(base.y > screen->h + scroll_y || + if(base.y > screen->h + scroll_y || base.y > World::current()->get_level()->height*32 || base.x < scroll_x - AUTOSCROLL_DEAD_INTERVAL) // can happen in auto-scrolling return true; else -- 2.11.0