pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2979 - in branches/pingus_sdl: . src/components


From: nehalmistry
Subject: [Pingus-CVS] r2979 - in branches/pingus_sdl: . src/components
Date: Thu, 16 Aug 2007 23:21:22 +0200

Author: nehalmistry
Date: 2007-08-16 23:21:17 +0200 (Thu, 16 Aug 2007)
New Revision: 2979

Modified:
   branches/pingus_sdl/TODO
   branches/pingus_sdl/src/components/action_button.cpp
Log:
fix alignment of cliber actionbutton


Modified: branches/pingus_sdl/TODO
===================================================================
--- branches/pingus_sdl/TODO    2007-08-16 20:30:27 UTC (rev 2978)
+++ branches/pingus_sdl/TODO    2007-08-16 21:21:17 UTC (rev 2979)
@@ -94,8 +94,6 @@
 
 - walker speed looks wrong, other actions might need fine tuning as well
 
-- climber align in the actionbutton looks wrong
-
 - fix all those Windstille file headers and replace them with Pingus
 
 - hurry-up should be removed and replaced by something less heavy

Modified: branches/pingus_sdl/src/components/action_button.cpp
===================================================================
--- branches/pingus_sdl/src/components/action_button.cpp        2007-08-16 
20:30:27 UTC (rev 2978)
+++ branches/pingus_sdl/src/components/action_button.cpp        2007-08-16 
21:21:17 UTC (rev 2979)
@@ -123,7 +123,11 @@
       }
     }
 
-  gc.draw(sprite, Vector3f((float)x_pos + 20, (float)y_pos + 32));
+  if (this->get_action_name() == Climber) {
+         gc.draw(sprite, Vector3f((float)x_pos + 32, (float)y_pos + 32));
+  } else {
+         gc.draw(sprite, Vector3f((float)x_pos + 20, (float)y_pos + 32));
+  }
 
   Font myfont  = font;
   Font myfontb = font_b;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]