summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-07-31 13:08:08 +0000
committerbjarni <bjarni@openttd.org>2005-07-31 13:08:08 +0000
commit546c34f2e5e6b130cdbc9201fe465548c1e54ee5 (patch)
treecf8e1be453d176ec2f818199cf430b90a6bf02d8 /command.c
parent50e41dc1d14114b90fa56579937f16c3de88eb75 (diff)
downloadopenttd-546c34f2e5e6b130cdbc9201fe465548c1e54ee5.tar.xz
(svn r2764) -Feature: Clone vehicles
-This allows a player to clone an excisting vehicle of his own -[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed -Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/command.c b/command.c
index 2e3056ed6..c31985c7a 100644
--- a/command.c
+++ b/command.c
@@ -159,6 +159,9 @@ DEF_COMMAND(CmdRemoveSignalTrack);
DEF_COMMAND(CmdReplaceVehicle);
+DEF_COMMAND(CmdCloneVehicle);
+
+
/* The master command table */
static const Command _command_proc_table[] = {
{CmdBuildRailroadTrack, 0}, /* 0 */
@@ -300,6 +303,7 @@ static const Command _command_proc_table[] = {
{CmdGiveMoney, 0}, /* 113 */
{CmdChangePatchSetting, CMD_SERVER}, /* 114 */
{CmdReplaceVehicle, 0}, /* 115 */
+ {CmdCloneVehicle, 0}, /* 116 */
};
/* This function range-checks a cmd, and checks if the cmd is not NULL */