(svn r23072) -Feature: [NewGRF] House callback 0x148.

This commit is contained in:
michi_cc
2011-10-31 22:31:40 +00:00
parent f66cd97776
commit e094d7db62
8 changed files with 88 additions and 9 deletions

View File

@@ -2031,7 +2031,6 @@ static ChangeInfoResult IgnoreTownHouseProperty(int prop, ByteReader *buf)
case 0x20: {
byte count = buf->ReadByte();
for (byte j = 0; j < count; j++) buf->ReadByte();
ret = CIR_UNHANDLED;
break;
}
@@ -2251,10 +2250,12 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
housespec->minimum_life = buf->ReadByte();
break;
case 0x20: { // @todo Cargo acceptance watch list
case 0x20: { // Cargo acceptance watch list
byte count = buf->ReadByte();
for (byte j = 0; j < count; j++) buf->ReadByte();
ret = CIR_UNHANDLED;
for (byte j = 0; j < count; j++) {
CargoID cargo = GetCargoTranslation(buf->ReadByte(), _cur.grffile);
if (cargo != CT_INVALID) SetBit(housespec->watched_cargoes, cargo);
}
break;
}