Add cheat: town local authority ratings fixed as Outstanding

This commit is contained in:
Jonathan G Rennison
2021-05-05 01:17:54 +01:00
parent a9515456cb
commit 95ca147445
7 changed files with 48 additions and 4 deletions

View File

@@ -286,6 +286,10 @@ CommandCost CmdCheatSetting(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
cht = &_extra_cheats.station_rating;
break;
case CHT_TOWN_RATING:
cht = &_extra_cheats.town_rating;
break;
default:
return CMD_ERROR;
}
@@ -298,6 +302,10 @@ CommandCost CmdCheatSetting(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
extern void UpdateAllStationRatings();
UpdateAllStationRatings();
}
if (p1 == CHT_TOWN_RATING) {
extern void UpdateAllTownRatings();
UpdateAllTownRatings();
}
}
return CommandCost();
}