summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-09-28 07:02:55 +0000
committerpeter1138 <peter1138@openttd.org>2006-09-28 07:02:55 +0000
commitf469d3fe76f1a2384f3f4508e23677db37d8f0b7 (patch)
treea63f553b649fb31388f6f320469902d1aae5424b /players.c
parenta94936031bc0ac504551251b50224e4b65a499a8 (diff)
downloadopenttd-f469d3fe76f1a2384f3f4508e23677db37d8f0b7.tar.xz
(svn r6544) - Codechange: Rename CmdReplaceVehicle to CmdSetAutoReplace, to reflect what it does.
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 1aed34fb1..b4a279ab6 100644
--- a/players.c
+++ b/players.c
@@ -700,7 +700,7 @@ static void DeletePlayerStuff(PlayerID pi)
* 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 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
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) {