summaryrefslogtreecommitdiff
path: root/callback_table.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 /callback_table.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 'callback_table.c')
-rw-r--r--callback_table.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/callback_table.c b/callback_table.c
index 61cf42db8..c5fc15354 100644
--- a/callback_table.c
+++ b/callback_table.c
@@ -10,6 +10,7 @@
/* aircraft_gui.c */
CommandCallback CcBuildAircraft;
+CommandCallback CcCloneAircraft;
/* airport_gui.c */
CommandCallback CcBuildAirport;
@@ -41,13 +42,16 @@ CommandCallback CcRoadDepot;
/* roadveh_gui.c */
CommandCallback CcBuildRoadVeh;
+CommandCallback CcCloneRoadVeh;
/* ship_gui.c */
CommandCallback CcBuildShip;
+CommandCallback CcCloneShip;
/* train_gui.c */
CommandCallback CcBuildWagon;
CommandCallback CcBuildLoco;
+CommandCallback CcCloneTrain;
CommandCallback *_callback_table[] = {
/* 0x00 */ NULL,
@@ -70,7 +74,11 @@ CommandCallback *_callback_table[] = {
/* 0x11 */ CcPlaySound1D,
/* 0x12 */ CcPlaySound1E,
/* 0x13 */ CcStation,
- /* 0x14 */ CcTerraform
+ /* 0x14 */ CcTerraform,
+ /* 0x15 */ CcCloneAircraft,
+ /* 0x16 */ CcCloneRoadVeh,
+ /* 0x17 */ CcCloneShip,
+ /* 0x18 */ CcCloneTrain,
};
const int _callback_table_count = lengthof(_callback_table);