pingus-cvs
[Top][All Lists]
Advanced

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

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


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

Author: grumbel
Date: 2008-07-04 04:07:25 +0200 (Fri, 04 Jul 2008)
New Revision: 3653

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 02:06:27 UTC (rev 
3652)
+++ trunk/pingus/src/actions/bridger.cpp        2008-07-04 02:07:25 UTC (rev 
3653)
@@ -187,25 +187,7 @@
 bool
 Bridger::brick_placement_allowed(void)
 {
-#ifdef BRIDGER_HEAD_COLLISION_CHECK
-  bool brick_allowed = true;
-
-  // Don't allow a brick to be placed if a Pingu would have a head collision
-  // if it walked along the whole of the brick.  Otherwise the Pingu,
-  // especially a walker, could get stuck between the brick and the ceiling.
-  for (int x_inc = 1; x_inc <= brick_length; ++x_inc)
-    {
-      if (head_collision_on_walk(x_inc, 2))
-       {
-         brick_allowed = false;
-         break;
-       }
-    }
-
-  return brick_allowed;
-#else
   return !head_collision_on_walk(0, 2);
-#endif
 }
 
 void





reply via email to

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