(svn r7745) [cbh] - Fix: SetSignalsEnumProc can set signals on bridge heads custombridgeheads
authorcelestar
Tue, 02 Jan 2007 11:51:07 +0000
branchcustombridgeheads
changeset 5636 2f3e7fb56cae
parent 5635 58d96074685e
child 5637 30d8850ae4fe
(svn r7745) [cbh] - Fix: SetSignalsEnumProc can set signals on bridge heads
misc_gui.c
rail_cmd.c
--- a/misc_gui.c	Tue Jan 02 11:41:17 2007 +0000
+++ b/misc_gui.c	Tue Jan 02 11:51:07 2007 +0000
@@ -1181,9 +1181,9 @@
 
 
 typedef struct query_d {
+	void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise
 	StringID message;            ///< message shown for query window
 	uint32 params[20];           ///< local copy of _decode_parameters
-	void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise
 	bool calledback;             ///< has callback been executed already (internal usage for WE_DESTROY event)
 } query_d;
 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(query_d));
--- a/rail_cmd.c	Tue Jan 02 11:41:17 2007 +0000
+++ b/rail_cmd.c	Tue Jan 02 11:51:07 2007 +0000
@@ -1454,7 +1454,7 @@
 {
 	SetSignalsData* ssd = data;
 
-	if (!IsTileType(tile, MP_RAILWAY)) return false;
+	if (!(IsTileType(tile, MP_RAILWAY) || IsTileType(tile, MP_RAILWAY_BRIDGE))) return false;
 
 	// the tile has signals?
 	if (HasSignalOnTrack(tile, TrackdirToTrack(track))) {