diff options
author | peter1138 <peter1138@openttd.org> | 2006-02-04 21:48:46 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-02-04 21:48:46 +0000 |
commit | 500a7e6627c130d3ec8bae00384dafe18e86da7e (patch) | |
tree | 87ce1a898e14813f5cc02bbe02c5671b8f166c37 /train_gui.c | |
parent | 78b51cbec2d027a4e8f3066370d5994d4e8b0935 (diff) | |
download | openttd-500a7e6627c130d3ec8bae00384dafe18e86da7e.tar.xz |
(svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list)
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index f71339092..ede95848c 100644 --- a/train_gui.c +++ b/train_gui.c @@ -170,9 +170,10 @@ void CcCloneTrain(bool success, uint tile, uint32 p1, uint32 p2) static void engine_drawing_loop(int *x, int *y, int *pos, int *sel, EngineID* selected_id, RailType railtype, byte show_max, bool is_engine) { - EngineID i; + EngineID j; - for (i = 0; i < NUM_TRAIN_ENGINES; i++) { + for (j = 0; j < NUM_TRAIN_ENGINES; j++) { + EngineID i = GetRailVehAtPosition(j); const Engine *e = GetEngine(i); const RailVehicleInfo *rvi = RailVehInfo(i); |