mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r649) Support for custom rail vehicle refit bitmasks. (pasky)
This commit is contained in:
parent
e2f3634db3
commit
46dddda22f
12
grfspecial.c
12
grfspecial.c
|
@ -348,13 +348,15 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
||||||
rvi[i].engclass = engclass;
|
rvi[i].engclass = engclass;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
case 0x1D: { /* Refit cargo */
|
||||||
|
FOR_EACH_OBJECT {
|
||||||
|
uint32 refit_mask = grf_load_dword(&buf);
|
||||||
|
|
||||||
|
_engine_refit_masks[engine + i] = refit_mask;
|
||||||
|
}
|
||||||
|
} break;
|
||||||
|
|
||||||
/* TODO */
|
/* TODO */
|
||||||
/* Fall-through for unimplemented four bytes long properties. */
|
|
||||||
case 0x1D: /* Refit cargo */
|
|
||||||
FOR_EACH_OBJECT {
|
|
||||||
grf_load_word(&buf);
|
|
||||||
}
|
|
||||||
/* Fall-through for unimplemented two bytes long properties. */
|
/* Fall-through for unimplemented two bytes long properties. */
|
||||||
case 0x1B: /* Powered wagons power bonus */
|
case 0x1B: /* Powered wagons power bonus */
|
||||||
FOR_EACH_OBJECT {
|
FOR_EACH_OBJECT {
|
||||||
|
|
Loading…
Reference in New Issue