From a2b505e4ca5973cbf087ea856431fe8922687e1b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 10 Jun 2007 21:34:45 +0000 Subject: (svn r10087) -Fix [FS#834]: multiple subsequent "give money" actions could result in duplicate messages that money has been transfered when it only happened once. --- src/callback_table.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/callback_table.cpp') diff --git a/src/callback_table.cpp b/src/callback_table.cpp index 30dca7cac..21bd39a4c 100644 --- a/src/callback_table.cpp +++ b/src/callback_table.cpp @@ -33,6 +33,7 @@ CommandCallback CcPlaySound10; CommandCallback CcPlaceSign; CommandCallback CcTerraform; CommandCallback CcBuildTown; +CommandCallback CcGiveMoney; /* rail_gui.cpp */ CommandCallback CcPlaySound1E; @@ -87,7 +88,8 @@ CommandCallback *_callback_table[] = { /* 0x17 */ CcCloneShip, /* 0x18 */ CcCloneTrain, /* 0x19 */ CcAI, - /* 0x1A */ CcCloneVehicle + /* 0x1A */ CcCloneVehicle, + /* 0x1B */ CcGiveMoney, }; const int _callback_table_count = lengthof(_callback_table); -- cgit v1.2.3-70-g09d2