diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-29 22:29:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-29 22:29:59 +0000 |
commit | fde99748c0972e137952b118f8b651d725ad37dc (patch) | |
tree | 0f74bc18a32d47dcd8443ec9fb7a992a9e350615 /train_cmd.c | |
parent | 4191adb92cbd9a1cb02b7a913fa90d62ee32ec31 (diff) | |
download | openttd-fde99748c0972e137952b118f8b651d725ad37dc.tar.xz |
(svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 71672ca44..2689da67f 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -1717,7 +1717,7 @@ int32 CmdRefitRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) /* XXX: We also refit all the attached wagons en-masse if they * can be refitted. This is how TTDPatch does it. TODO: Have * some nice [Refit] button near each wagon. --pasky */ - if (!CanRefitTo(v, new_cid)) continue; + if (!CanRefitTo(v->engine_type, new_cid)) continue; if (v->cargo_cap != 0) { const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); |