equal
deleted
inserted
replaced
387 |
387 |
388 default: break; |
388 default: break; |
389 } |
389 } |
390 } |
390 } |
391 |
391 |
392 if (_game_mode != GM_EDITOR && IsValidPlayer(_current_player)) { |
392 if (_game_mode != GM_EDITOR && IsValidPlayerID(_current_player)) { |
393 Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority); |
393 Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority); |
394 if (t != NULL) ChangeTownRating(t, RATING_TREE_UP_STEP, RATING_TREE_MAXIMUM); |
394 if (t != NULL) ChangeTownRating(t, RATING_TREE_UP_STEP, RATING_TREE_MAXIMUM); |
395 } |
395 } |
396 |
396 |
397 if (flags & DC_EXEC) { |
397 if (flags & DC_EXEC) { |
530 |
530 |
531 static CommandCost ClearTile_Trees(TileIndex tile, byte flags) |
531 static CommandCost ClearTile_Trees(TileIndex tile, byte flags) |
532 { |
532 { |
533 uint num; |
533 uint num; |
534 |
534 |
535 if (IsValidPlayer(_current_player)) { |
535 if (IsValidPlayerID(_current_player)) { |
536 Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority); |
536 Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority); |
537 if (t != NULL) ChangeTownRating(t, RATING_TREE_DOWN_STEP, RATING_TREE_MINIMUM); |
537 if (t != NULL) ChangeTownRating(t, RATING_TREE_DOWN_STEP, RATING_TREE_MINIMUM); |
538 } |
538 } |
539 |
539 |
540 num = GetTreeCount(tile) + 1; |
540 num = GetTreeCount(tile) + 1; |