Cleanup: Remove unnecessary VehicleRandomBits()

Simple Random() assignment to byte does the same.
This commit is contained in:
Peter Nelson
2023-04-23 21:22:17 +01:00
committed by PeterN
parent ca497ce356
commit 4a5e413a6c
7 changed files with 10 additions and 19 deletions

View File

@@ -303,7 +303,7 @@ CommandCost CmdBuildRoadVehicle(DoCommandFlag flags, TileIndex tile, const Engin
v->build_year = TimerGameCalendar::year;
v->sprite_cache.sprite_seq.Set(SPR_IMG_QUERY);
v->random_bits = VehicleRandomBits();
v->random_bits = Random();
v->SetFrontEngine();
v->roadtype = rt;