mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +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++) {
|
for (u8 i = 0; i < RNG_POSITION_MAX; i++) {
|
||||||
if (sRngPosition[i].life != 0) { continue; }
|
if (sRngPosition[i].life != 0) { continue; }
|
||||||
sRngPosition[i].life = RNG_POSITION_LIFE;
|
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);
|
vec3f_copy(sRngPosition[i].position, position);
|
||||||
gOverrideRngPosition = &sRngPosition[i];
|
gOverrideRngPosition = &sRngPosition[i];
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue