pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/actions digger.cxx,1.6,1.7 walker.cxx


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/actions digger.cxx,1.6,1.7 walker.cxx,1.14,1.15
Date: 4 Aug 2002 12:56:13 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/actions
In directory dark:/tmp/cvs-serv24418/actions

Modified Files:
        digger.cxx walker.cxx 
Log Message:
- little bugfix of an un-init variable
- fixed the velocity of a pingu, which didn't get reset to 0 once he hit the 
ground

Index: digger.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/digger.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- digger.cxx  2 Jul 2002 13:36:06 -0000       1.6
+++ digger.cxx  4 Aug 2002 12:56:11 -0000       1.7
@@ -39,6 +39,11 @@
   digger_radius_gfx = PingusResource::load_surface ("Other/digger_radius_gfx", 
"pingus");
   sprite = Sprite (std::string("Pingus/digger") + to_string(pingu->get_owner 
()),
                   "pingus");
+#if 0
+  // FIXME: Just an idea...
+  sprite = Sprite (std::string("Pingus/digger") + to_string(pingu->get_owner 
()),
+                  "pingus", PropertyMgr::instance()->get_int 
("actions/digger/sprite-fps", 20));
+#endif
   sprite.set_align_center_bottom ();
 }
 

Index: walker.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/walker.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- walker.cxx  2 Jul 2002 13:36:06 -0000       1.14
+++ walker.cxx  4 Aug 2002 12:56:11 -0000       1.15
@@ -31,6 +31,9 @@
 {
   walker = Sprite ("Pingus/walker" + to_string(pingu->get_owner ()), "pingus");
   walker.set_align_center_bottom ();
+  
+  // Reset the velocity
+  pingu->velocity = CL_Vector ();
 }
 
 void




reply via email to

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