File diff r25986:5267c0ebe380 → r25987:b9d33db7c49f
src/object_cmd.cpp
Show inline comments
 
@@ -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.
 
			break;
 
	}
 

	
 
	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);