mirror of https://github.com/OpenTTD/OpenTTD
pull/9683/head
parent
c38af72978
commit
e9cb9c1135
|
@ -639,7 +639,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||||
GetQuarterlyCompanyValue(): -1
|
GetQuarterlyCompanyValue(): -1
|
||||||
Quarter: 0
|
Quarter: 0
|
||||||
GetQuarterlyIncome(): 0
|
GetQuarterlyIncome(): 0
|
||||||
GetQuarterlyExpenses(): -210
|
GetQuarterlyExpenses(): 0
|
||||||
GetQuarterlyCargoDelivered(): 0
|
GetQuarterlyCargoDelivered(): 0
|
||||||
GetQuarterlyPerformanceRating(): -1
|
GetQuarterlyPerformanceRating(): -1
|
||||||
GetQuarterlyCompanyValue(): 1
|
GetQuarterlyCompanyValue(): 1
|
||||||
|
|
|
@ -204,7 +204,7 @@ static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags);
|
||||||
*/
|
*/
|
||||||
CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const std::string &text)
|
CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const std::string &text)
|
||||||
{
|
{
|
||||||
CommandCost cost(EXPENSES_PROPERTY);
|
CommandCost cost(EXPENSES_CONSTRUCTION);
|
||||||
|
|
||||||
ObjectType type = (ObjectType)GB(p1, 0, 16);
|
ObjectType type = (ObjectType)GB(p1, 0, 16);
|
||||||
if (type >= NUM_OBJECTS) return CMD_ERROR;
|
if (type >= NUM_OBJECTS) return CMD_ERROR;
|
||||||
|
@ -526,7 +526,7 @@ static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cost of relocating company is 1% of company value */
|
/* cost of relocating company is 1% of company value */
|
||||||
cost = CommandCost(EXPENSES_PROPERTY, CalculateCompanyValue(c) / 100);
|
cost = CommandCost(EXPENSES_CONSTRUCTION, CalculateCompanyValue(c) / 100);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue