Fix UB in draw_gravity_particles

This commit is contained in:
Jesse Ruderman 2021-07-11 19:47:56 -07:00
parent 08cbe8e4e0
commit fdfba9be50
1 changed files with 2 additions and 2 deletions

View File

@ -2510,9 +2510,9 @@ void celldrawer::add_map_effects() {
}
void celldrawer::draw_gravity_particles() {
int u = (int)(size_t)(c);
unsigned int u = (unsigned int)(size_t)(c);
u = ((u * 137) + (u % 1000) * 51) % 1000;
int tt = ticks + u; fractick(ticks, 900);
int tt = ticks + u;
ld r0 = (tt % 900) / 1100.;
ld r1 = (tt % 900 + 200) / 1100.;