From: Ricardo Cruz Date: Tue, 11 May 2004 23:15:45 +0000 (+0000) Subject: Fixed hotspot square drawing in debug mode. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=daa1d5e06caab3b3903afdd36466614a1ee74acf;p=supertux.git Fixed hotspot square drawing in debug mode. SVN-Revision: 1117 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 78927ee3c..ab515b5d6 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -749,7 +749,7 @@ BadGuy::draw() sprite->draw(base.x, base.y); if (debug_mode) - fillrect(base.x, base.y, base.width, base.height, 75,0,75, 150); + fillrect(base.x - scroll_x, base.y - scroll_y, base.width, base.height, 75,0,75, 150); } void diff --git a/src/player.cpp b/src/player.cpp index 2966672a7..ac5018fb9 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -632,7 +632,7 @@ Player::draw() } if (debug_mode) - fillrect(base.x, base.y, + fillrect(base.x - scroll_x, base.y - scroll_y, base.width, base.height, 75,75,75, 150); }