Upgrades weren't being shown when appearing... fixed!
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 11 May 2004 23:09:33 +0000 (23:09 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 11 May 2004 23:09:33 +0000 (23:09 +0000)
SVN-Revision: 1115

src/special.cpp

index 64fc9d8..9b04c05 100644 (file)
@@ -252,8 +252,8 @@ Upgrade::draw()
     {
       /* Rising up... */
 
-      dest.x = (int)(base.x);
-      dest.y = (int)(base.y + 32 - base.height);
+      dest.x = (int)(base.x - scroll_x);
+      dest.y = (int)(base.y - scroll_y + 32 - base.height);
       dest.w = 32;
       dest.h = (int)base.height;