From 546c34f2e5e6b130cdbc9201fe465548c1e54ee5 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sun, 31 Jul 2005 13:08:08 +0000 Subject: (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 --- callback_table.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'callback_table.c') 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); -- cgit v1.2.3-54-g00ecf