summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-15 16:43:18 +0000
committertron <tron@openttd.org>2005-10-15 16:43:18 +0000
commitd52bf846f333eb48f4b1942b10e394128f2770a9 (patch)
tree96ffecbf938465b237b7a455bb91e02f793cd117
parentd5042d4ab2739150a311f032a7df63b45ef65928 (diff)
downloadopenttd-d52bf846f333eb48f4b1942b10e394128f2770a9.tar.xz
(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)
-rw-r--r--train_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c
index 194c4fb44..257707517 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -181,7 +181,7 @@ static void engine_drawing_loop(int *x, int *y, int *pos, int *sel,
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 *w, WindowEvent *e)
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++;
}