@@ -340,25 +340,25 @@ CommandCost CmdBuildObject(TileIndex til
break;
}
case OBJECT_STATUE:
/* This may never be constructed using this method. */
return CMD_ERROR;
default: // i.e. NewGRF provided.
if (flags & DC_EXEC) {
BuildObject(type, tile, _current_company, nullptr, view);
BuildObject(type, tile, _current_company == OWNER_DEITY ? OWNER_NONE : _current_company, nullptr, view);
/* Make sure the HQ starts at the right size. */
if (type == OBJECT_HQ) UpdateCompanyHQ(tile, hq_score);
cost.AddCost(ObjectSpec::Get(type)->GetBuildCost() * size_x * size_y);
return cost;
static Foundation GetFoundation_Object(TileIndex tile, Slope tileh);