(svn r24905) -Feature(ish): Implement station randomisation triggers.

This commit is contained in:
peter1138
2013-01-11 07:39:25 +00:00
parent 4ebbfc3de4
commit c00a400cc7
12 changed files with 127 additions and 11 deletions

View File

@@ -1908,6 +1908,9 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
case 0x12: // Cargo types for random triggers
statspec->cargo_triggers = buf->ReadDWord();
if (_cur.grffile->grf_version >= 7) {
statspec->cargo_triggers = TranslateRefitMask(statspec->cargo_triggers);
}
break;
case 0x13: // General flags