use same Cvar than 3D drops item

This commit is contained in:
Baoulettes 2022-05-25 20:20:44 +02:00
commit fb270dbab9
3 changed files with 5 additions and 6 deletions

View file

@ -127,7 +127,7 @@ void func_80ABBBA8(EnNutsball* this, GlobalContext* globalCtx) {
this->collider.info.toucher.dmgFlags = 2;
Matrix_MtxFToYXZRotS(&player->shieldMf, &sp4C, 0);
if (CVar_GetS32("gNewProjectiles", 0) != 0) {
if (CVar_GetS32("gNewDrops", 0) != 0) {
this->actor.world.rot.z = sp4C.y + 0x8000;
} else {
this->actor.world.rot.y = sp4C.y + 0x8000;
@ -176,7 +176,7 @@ void EnNutsball_Draw(Actor* thisx, GlobalContext* globalCtx) {
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_nutsball.c", 327);
if (CVar_GetS32("gNewProjectiles", 0) != 0) {
if (CVar_GetS32("gNewDrops", 0) != 0) {
func_80093D18(globalCtx->state.gfxCtx);
gSPSegment(POLY_OPA_DISP++, 0x08,
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 6),

View file

@ -714,7 +714,7 @@ void EnOkuta_Draw(Actor* thisx, GlobalContext* globalCtx) {
} else {
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_en_okuta.c", 1653);
if (CVar_GetS32("gNewProjectiles", 0) != 0) {
if (CVar_GetS32("gNewDrops", 0) != 0) {
func_80093D18(globalCtx->state.gfxCtx);
gSPSegment(POLY_OPA_DISP++, 0x08,
Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, 1 * (globalCtx->state.frames * 6),