Fixed hotspot square drawing in debug mode.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 11 May 2004 23:15:45 +0000 (23:15 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 11 May 2004 23:15:45 +0000 (23:15 +0000)
SVN-Revision: 1117

src/badguy.cpp
src/player.cpp

index 78927ee..ab515b5 100644 (file)
@@ -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
index 2966672..ac5018f 100644 (file)
@@ -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);
 }