@@ -1053,11 +1053,14 @@ static void VehicleChangeInfo(byte *buf,
while (numprops-- && buf < bufend) {
uint8 prop = grf_load_byte(&buf);
bool ignoring = false;
if (feature == GSF_STATION)
// stations don't share those common properties
goto run_handler;
switch (feature) {
case GSF_TRAIN:
case GSF_ROAD:
case GSF_SHIP:
case GSF_AIRCRAFT:
/* Common properties for vehicles */
switch (prop) {
case 0x00: { /* Introduction date */
FOR_EACH_OBJECT {
@@ -1106,17 +1109,25 @@ static void VehicleChangeInfo(byte *buf,
grf_load_byte(&buf);
}
goto ignoring;
ignoring = true;
break;
default: {
run_handler:
if (handler[feature](engine, numinfo, prop, &buf, bufend - buf)) {
ignoring:
grfmsg(GMS_NOTICE, "VehicleChangeInfo: Ignoring property %x (not implemented).", prop);
default:
if (handler[feature](engine, numinfo, prop, &buf, bufend - buf))
if (ignoring)
Status change: