pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r3652 - trunk/pingus/src/actions


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3652 - trunk/pingus/src/actions
Date: Fri, 4 Jul 2008 04:06:28 +0200

Author: grumbel
Date: 2008-07-04 04:06:27 +0200 (Fri, 04 Jul 2008)
New Revision: 3652

Modified:
   trunk/pingus/src/actions/bridger.cpp
Log:
Minor cleanup

Modified: trunk/pingus/src/actions/bridger.cpp
===================================================================
--- trunk/pingus/src/actions/bridger.cpp        2008-07-04 00:55:32 UTC (rev 
3651)
+++ trunk/pingus/src/actions/bridger.cpp        2008-07-04 02:06:27 UTC (rev 
3652)
@@ -51,9 +51,10 @@
 }
 
 void
-Bridger::draw (SceneContext& gc)
+Bridger::draw(SceneContext& gc)
 {
-  int x_offset(6), y_offset(4);
+  int x_offset = 6;
+  int y_offset = 4;
 
   if (bricks == MAX_BRICKS) {
     x_offset = -4;
@@ -124,7 +125,7 @@
 void
 Bridger::update_build ()
 {
-  build_sprite[pingu->direction].update (0.033f);
+  build_sprite[pingu->direction].update();
 
   if (build_sprite[pingu->direction].get_current_frame () >= 7 && !block_build)
     {
@@ -235,7 +236,7 @@
 void
 Bridger::walk_one_step_up()
 {
-  pingu->set_pos(pingu->get_pos().x + (float)(4 * pingu->direction), 
+  pingu->set_pos(pingu->get_pos().x + (4 * pingu->direction),
                  pingu->get_pos().y - 2);
 }
 





reply via email to

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