pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r2964 - branches/pingus_sdl/src/actions


From: nehalmistry
Subject: [Pingus-CVS] r2964 - branches/pingus_sdl/src/actions
Date: Thu, 16 Aug 2007 20:33:39 +0200

Author: nehalmistry
Date: 2007-08-16 20:33:16 +0200 (Thu, 16 Aug 2007)
New Revision: 2964

Modified:
   branches/pingus_sdl/src/actions/walker.cpp
Log:
fixed walking off edge of map

Modified: branches/pingus_sdl/src/actions/walker.cpp
===================================================================
--- branches/pingus_sdl/src/actions/walker.cpp  2007-08-16 17:33:35 UTC (rev 
2963)
+++ branches/pingus_sdl/src/actions/walker.cpp  2007-08-16 18:33:16 UTC (rev 
2964)
@@ -64,6 +64,11 @@
 
   */
 
+  if (rel_getpixel(1, 0) == Groundtype::GP_OUTOFSCREEN) {
+               pingu->set_x(pingu->get_x() + pingu->direction);
+               return;
+  }
+
   if (rel_getpixel(0, -1) ==  Groundtype::GP_WATER)
     {
       pingu->set_action(Actions::Drown);





reply via email to

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