players.c
changeset 4661 59492734db06
parent 4609 6c337b3fbf4b
child 4824 ddbd525a04d0
--- a/players.c	Thu Sep 28 05:40:39 2006 +0000
+++ b/players.c	Thu Sep 28 07:02:55 2006 +0000
@@ -700,7 +700,7 @@
  * if p1 = 5, then
  * - p2 = enable renew_keep_length
  */
-int32 CmdReplaceVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
+int32 CmdSetAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
 {
 	Player *p;
 	if (!(_current_player < MAX_PLAYERS))
@@ -869,7 +869,7 @@
 					MarkWholeScreenDirty();
 				}
 			} else if (p->index == _local_player) {
-				DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_REPLACE_VEHICLE);
+				DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
 			}
 #ifdef ENABLE_NETWORK
 			if (_network_server) {