Rename ACTIVATION_DISTANCE to get compile_amalgation to work again
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 20 Mar 2010 15:20:58 +0000 (15:20 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sat, 20 Mar 2010 15:20:58 +0000 (15:20 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6617 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/object/icecrusher.cpp

index 873428c..2874d26 100644 (file)
@@ -27,7 +27,7 @@ namespace {
 /* Maximum movement speed in pixels per LOGICAL_FPS */
 const float MAX_DROP_SPEED = 10.0;
 const float RECOVER_SPEED = -3.125;
-const float ACTIVATION_DISTANCE = 4.0;
+const float DROP_ACTIVATION_DISTANCE = 4.0;
 const float PAUSE_TIME = 0.5;
 }
 
@@ -175,8 +175,8 @@ IceCrusher::found_victim()
   const Rectf& player_bbox = player->get_bbox();
   const Rectf& crusher_bbox = get_bbox();
   if ((player_bbox.p1.y >= crusher_bbox.p2.y) /* player is below crusher */
-      && (player_bbox.p2.x > (crusher_bbox.p1.x - ACTIVATION_DISTANCE))
-      && (player_bbox.p1.x < (crusher_bbox.p2.x + ACTIVATION_DISTANCE)))
+      && (player_bbox.p2.x > (crusher_bbox.p1.x - DROP_ACTIVATION_DISTANCE))
+      && (player_bbox.p1.x < (crusher_bbox.p2.x + DROP_ACTIVATION_DISTANCE)))
     return true;
   else
     return false;