src/aircraft_cmd.cpp
changeset 8418 b49fc6be1ab9
parent 8396 38c1737936e6
child 8419 de9999f762d0
--- a/src/aircraft_cmd.cpp	Mon Nov 19 04:34:40 2007 +0000
+++ b/src/aircraft_cmd.cpp	Mon Nov 19 18:38:10 2007 +0000
@@ -833,12 +833,12 @@
 
 	Vehicle *u = v->Next();
 
-	int safe_x = clamp(x, 0, MapMaxX() * TILE_SIZE);
-	int safe_y = clamp(y - 1, 0, MapMaxY() * TILE_SIZE);
+	int safe_x = Clamp(x, 0, MapMaxX() * TILE_SIZE);
+	int safe_y = Clamp(y - 1, 0, MapMaxY() * TILE_SIZE);
 	u->x_pos = x;
 	u->y_pos = y - ((v->z_pos-GetSlopeZ(safe_x, safe_y)) >> 3);;
 
-	safe_y = clamp(u->y_pos, 0, MapMaxY() * TILE_SIZE);
+	safe_y = Clamp(u->y_pos, 0, MapMaxY() * TILE_SIZE);
 	u->z_pos = GetSlopeZ(safe_x, safe_y);
 	u->cur_image = v->cur_image;