(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity multipliers when refitting vehicles, which do not use callback 15.

This commit is contained in:
frosch
2012-01-28 12:08:03 +00:00
parent 01ef8aa478
commit 4cc26a1b86
5 changed files with 51 additions and 50 deletions

View File

@@ -2798,6 +2798,10 @@ static ChangeInfoResult CargoChangeInfo(uint cid, int numinfo, int prop, ByteRea
cs->callback_mask = buf->ReadByte();
break;
case 0x1D: // Vehicle capacity muliplier
cs->multiplier = max<uint16>(1u, buf->ReadWord());
break;
default:
ret = CIR_UNKNOWN;
break;