Renamed Rect to Rectf
[supertux.git] / src / badguy / igel.cpp
index 41c3543..2eaa0ab 100644 (file)
@@ -60,8 +60,8 @@ Igel::turn_around()
 bool
 Igel::can_see(const MovingObject& o)
 {
-  Rect mb = get_bbox();
-  Rect ob = o.get_bbox();
+  Rectf mb = get_bbox();
+  Rectf ob = o.get_bbox();
 
   bool inReach_left = ((ob.p2.x < mb.p1.x) && (ob.p2.x >= mb.p1.x-((dir == LEFT) ? RANGE_OF_VISION : 0)));
   bool inReach_right = ((ob.p1.x > mb.p2.x) && (ob.p1.x <= mb.p2.x+((dir == RIGHT) ? RANGE_OF_VISION : 0)));