Adding of _t to (u)int types, and WChar to char32_t

See: eaae0bb5e
This commit is contained in:
Jonathan G Rennison
2024-01-07 16:41:53 +00:00
parent 55d78a23be
commit 97e6f3062e
655 changed files with 7555 additions and 7555 deletions

View File

@@ -243,7 +243,7 @@ void CreateSubsidy(CargoID cid, SourceType src_type, SourceID src, SourceType ds
* @param text unused.
* @return the cost of this operation or an error
*/
CommandCost CmdCreateSubsidy(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
CommandCost CmdCreateSubsidy(TileIndex tile, DoCommandFlag flags, uint32_t p1, uint32_t p2, const char *text)
{
if (!Subsidy::CanAllocateItem()) return CMD_ERROR;
@@ -341,13 +341,13 @@ bool FindSubsidyTownCargoRoute()
/* Passenger subsidies are not handled here. */
town_cargo_produced[CT_PASSENGERS] = 0;
uint8 cargo_count = town_cargo_produced.GetCount();
uint8_t cargo_count = town_cargo_produced.GetCount();
/* No cargo produced at all? */
if (cargo_count == 0) return false;
/* Choose a random cargo that is produced in the town. */
uint8 cargo_number = RandomRange(cargo_count);
uint8_t cargo_number = RandomRange(cargo_count);
CargoID cid;
for (cid = 0; cid < NUM_CARGO; cid++) {
if (town_cargo_produced[cid] > 0) {