File diff r14303:86c6ebda1a1d → r14304:dc9cb5b9e881
src/unmovable_cmd.cpp
Show inline comments
 
@@ -114,7 +114,7 @@ CommandCost CmdBuildCompanyHQ(TileIndex 
 
	CommandCost cost(EXPENSES_PROPERTY);
 

	
 
	cost = CheckFlatLandBelow(tile, 2, 2, flags, 0, NULL);
 
	if (CmdFailed(cost)) return cost;
 
	if (cost.Failed()) return cost;
 

	
 
	if (c->location_of_HQ != INVALID_TILE) { // Moving HQ
 
		cost.AddCost(DestroyCompanyHQ(_current_company, flags));
 
@@ -152,7 +152,7 @@ CommandCost CmdPurchaseLandArea(TileInde
 
	}
 

	
 
	cost = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
	if (CmdFailed(cost)) return CMD_ERROR;
 
	if (cost.Failed()) return CMD_ERROR;
 

	
 
	if (flags & DC_EXEC) {
 
		MakeOwnedLand(tile, _current_company);