Changeset - r2518:27b190715871
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-10-15 16:43:18
tron@openttd.org
(svn r3047) The parameters for the railtype check got flipped in the train build window (this caused no visible problem so far, therefore no Fix tag)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
train_gui.c
Show inline comments
 
@@ -181,7 +181,7 @@ static void engine_drawing_loop(int *x, 
 
		const Engine *e = GetEngine(i);
 
		const RailVehicleInfo *rvi = RailVehInfo(i);
 

	
 
		if (!IsCompatibleRail(railtype, e->railtype) || !(rvi->flags & RVI_WAGON) != is_engine ||
 
		if (!IsCompatibleRail(e->railtype, railtype) || !(rvi->flags & RVI_WAGON) != is_engine ||
 
				!HASBIT(e->player_avail, _local_player))
 
			continue;
 

	
 
@@ -213,7 +213,7 @@ static void NewRailVehicleWndProc(Window
 

	
 
			for (i = 0; i < NUM_TRAIN_ENGINES; i++) {
 
				const Engine *e = GetEngine(i);
 
				if (IsCompatibleRail(railtype, e->railtype)
 
				if (IsCompatibleRail(e->railtype, railtype)
 
				    && HASBIT(e->player_avail, _local_player))
 
					count++;
 
			}
0 comments (0 inline, 0 general)