mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
made rng positions more random (#33)
coins will still consistently spawn in the same formation
This commit is contained in:
parent
7b4a223b67
commit
59dfcb6483
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ void rng_position_init(f32 x, f32 y, f32 z) {
|
|||
for (u8 i = 0; i < RNG_POSITION_MAX; i++) {
|
||||
if (sRngPosition[i].life != 0) { continue; }
|
||||
sRngPosition[i].life = RNG_POSITION_LIFE;
|
||||
sRngPosition[i].seed = (u16)((position[0] / (3 * RNG_POSITION_MATCH_DIST)) + (position[1] / (3 * RNG_POSITION_MATCH_DIST)));
|
||||
sRngPosition[i].seed = (u16)((position[0] / 3) + (position[1] / 3));
|
||||
vec3f_copy(sRngPosition[i].position, position);
|
||||
gOverrideRngPosition = &sRngPosition[i];
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue