(svn r25835) -Change: Increase the total number of object types from 256 to 64000.

This commit is contained in:
frosch
2013-10-12 16:31:55 +00:00
parent 2bfa36cc16
commit b70d64200e
2 changed files with 3 additions and 2 deletions

View File

@@ -205,7 +205,8 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
{
CommandCost cost(EXPENSES_PROPERTY);
ObjectType type = (ObjectType)GB(p1, 0, 8);
ObjectType type = (ObjectType)GB(p1, 0, 16);
if (type >= NUM_OBJECTS) return CMD_ERROR;
uint8 view = GB(p2, 0, 2);
const ObjectSpec *spec = ObjectSpec::Get(type);
if (!spec->IsAvailable()) return CMD_ERROR;