Fix the seeding for Dark Link's spot in enemy rando. (#7249)

This commit is contained in:
Pepper0ni
2026-09-24 23:37:48 +01:00
committed by GitHub
parent 8fc1fc869b
commit 479aa26ef4
@@ -828,10 +828,13 @@ void RegisterEnemyRandomizer() {
s16 posZ = static_cast<s16>(blkobj->dyna.actor.world.pos.z);
s16 rotX = 0;
s16 rotY = blkobj->dyna.actor.yawTowardsPlayer;
s16 seededRotY = 6969;
s16 rotZ = 0;
s16 params = 0;
if (!GetRandomizedEnemy(play, &actorId, &posX, &posY, &posZ, &rotX, &rotY, &rotZ, &params)) {
// rotation is hardcoded here as it is inconsistent, breaking seeded randomiser
// value provided is the best meme number avalible, theoretically any number works
if (!GetRandomizedEnemy(play, &actorId, &posX, &posY, &posZ, &rotX, &seededRotY, &rotZ, &params)) {
assert(false);
}