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 bomber.cxx,1.15,1.16


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/actions bomber.cxx,1.15,1.16
Date: 6 Oct 2002 17:02:21 -0000

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

Modified Files:
        bomber.cxx 
Log Message:
applied bomber patch from Gervase Lam


Index: bomber.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/bomber.cxx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- bomber.cxx  1 Oct 2002 19:53:45 -0000       1.15
+++ bomber.cxx  6 Oct 2002 17:02:19 -0000       1.16
@@ -84,6 +84,12 @@
 {
   sprite.update ();
 
+  // Make a Bomber act like a Floater
+  pingu->set_velocity(Vector(0.0, 0.0));
+  
+  if (rel_getpixel(0, -1) == Groundtype::GP_NOTHING) 
+    pingu->set_y(pingu->get_y() + 1);
+
   if (sprite.get_frame () > 9 && !sound_played) {
     WorldObj::get_world()->play_wav("sounds/plop.wav", pingu->get_pos ());
     sound_played = true;





reply via email to

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