diff options
author | miham <miham@openttd.org> | 2004-11-17 01:09:15 +0000 |
---|---|---|
committer | miham <miham@openttd.org> | 2004-11-17 01:09:15 +0000 |
commit | 46dddda22f6507ff835891a1620785a8a8e8d41b (patch) | |
tree | c04ae8ef8fd3e79ce2cd3f9f3cf13c82c6cef123 | |
parent | e2f3634db3b821408a226d248661f5d979272c30 (diff) | |
download | openttd-46dddda22f6507ff835891a1620785a8a8e8d41b.tar.xz |
(svn r649) Support for custom rail vehicle refit bitmasks. (pasky)
-rw-r--r-- | grfspecial.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/grfspecial.c b/grfspecial.c index ad1d3553e..cbf0509e3 100644 --- a/grfspecial.c +++ b/grfspecial.c @@ -348,13 +348,15 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf rvi[i].engclass = engclass; } } break; - - /* TODO */ - /* Fall-through for unimplemented four bytes long properties. */ - case 0x1D: /* Refit cargo */ + case 0x1D: { /* Refit cargo */ FOR_EACH_OBJECT { - grf_load_word(&buf); + uint32 refit_mask = grf_load_dword(&buf); + + _engine_refit_masks[engine + i] = refit_mask; } + } break; + + /* TODO */ /* Fall-through for unimplemented two bytes long properties. */ case 0x1B: /* Powered wagons power bonus */ FOR_EACH_OBJECT { |