mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Use constant for random colour
This commit is contained in:
committed by
GitHub
parent
7767f506be
commit
e3cf32342b
@@ -344,12 +344,12 @@ static void cheat_give_all_guests(int object)
|
||||
break;
|
||||
case OBJECT_BALLOON:
|
||||
peep->item_standard_flags |= PEEP_ITEM_BALLOON;
|
||||
peep->balloon_colour = scenario_rand_max(31);
|
||||
peep->balloon_colour = scenario_rand_max(COLOUR_COUNT - 1);
|
||||
peep_update_sprite_type(peep);
|
||||
break;
|
||||
case OBJECT_UMBRELLA:
|
||||
peep->item_standard_flags |= PEEP_ITEM_UMBRELLA;
|
||||
peep->umbrella_colour = scenario_rand_max(31);
|
||||
peep->umbrella_colour = scenario_rand_max(COLOUR_COUNT - 1);
|
||||
peep_update_sprite_type(peep);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user