mirror of https://github.com/zeldaret/mm.git
Fix LensMode Names (#1643)
This commit is contained in:
parent
34e326bc34
commit
fdd3f17385
|
@ -366,8 +366,8 @@ typedef struct ActorListEntry {
|
|||
} ActorListEntry; // size = 0xC
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ LENS_MODE_HIDE_ACTORS, // lens actors are visible by default, and hidden by using lens (for example, fake walls)
|
||||
/* 1 */ LENS_MODE_SHOW_ACTORS // lens actors are invisible by default, and shown by using lens (for example, invisible enemies)
|
||||
/* 0 */ LENS_MODE_SHOW_ACTORS, // lens actors are invisible by default, and shown by using lens (for example, invisible enemies)
|
||||
/* 1 */ LENS_MODE_HIDE_ACTORS // lens actors are visible by default, and hidden by using lens (for example, fake walls)
|
||||
} LensMode;
|
||||
|
||||
#define LENS_ACTOR_MAX 32
|
||||
|
|
|
@ -2874,7 +2874,7 @@ void Actor_DrawLensActors(PlayState* play, s32 numLensActors, Actor** lensActors
|
|||
|
||||
gDPSetPrimColor(gfx++, 0, 0, 0, 0, 0, 255);
|
||||
|
||||
if (play->roomCtx.curRoom.lensMode == LENS_MODE_HIDE_ACTORS) {
|
||||
if (play->roomCtx.curRoom.lensMode == LENS_MODE_SHOW_ACTORS) {
|
||||
gDPSetCombineLERP(gfx++, 1, TEXEL0, PRIMITIVE, 0, 1, TEXEL0, PRIMITIVE, 0, 1, TEXEL0, PRIMITIVE, 0, 1,
|
||||
TEXEL0, PRIMITIVE, 0);
|
||||
} else {
|
||||
|
@ -2904,7 +2904,7 @@ void Actor_DrawLensActors(PlayState* play, s32 numLensActors, Actor** lensActors
|
|||
gDPSetBlendColor(gfx++, 255, 255, 255, 0);
|
||||
gDPSetPrimColor(gfx++, 0, 0xFF, 0, 0, 0, 32);
|
||||
|
||||
if (play->roomCtx.curRoom.lensMode == LENS_MODE_HIDE_ACTORS) {
|
||||
if (play->roomCtx.curRoom.lensMode == LENS_MODE_SHOW_ACTORS) {
|
||||
gDPSetCombineMode(gfx++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
||||
} else {
|
||||
gDPSetCombineLERP(gfx++, 1, TEXEL0, PRIMITIVE, 0, 1, TEXEL0, PRIMITIVE, 0, 1, TEXEL0, PRIMITIVE, 0, 1,
|
||||
|
@ -3027,7 +3027,7 @@ void Actor_DrawAll(PlayState* play, ActorContext* actorCtx) {
|
|||
actor->isDrawn = false;
|
||||
if ((actor->init == NULL) && (actor->draw != NULL) && (actor->flags & actorFlags)) {
|
||||
if ((actor->flags & ACTOR_FLAG_REACT_TO_LENS) &&
|
||||
((play->roomCtx.curRoom.lensMode == LENS_MODE_HIDE_ACTORS) ||
|
||||
((play->roomCtx.curRoom.lensMode == LENS_MODE_SHOW_ACTORS) ||
|
||||
(play->actorCtx.lensMaskSize == LENS_MASK_ACTIVE_SIZE) ||
|
||||
(actor->room != play->roomCtx.curRoom.num))) {
|
||||
if (Actor_AddToLensActors(play, actor)) {}
|
||||
|
|
|
@ -96,7 +96,7 @@ void EnTest2_Update(Actor* thisx, PlayState* play) {
|
|||
Actor_SetObjectDependency(play, &this->actor);
|
||||
this->animMat = Lib_SegmentedToVirtual(modelInfo->animMat);
|
||||
}
|
||||
if (play->roomCtx.curRoom.lensMode != LENS_MODE_HIDE_ACTORS) {
|
||||
if (play->roomCtx.curRoom.lensMode != LENS_MODE_SHOW_ACTORS) {
|
||||
this->actor.update = EnTest2_UpdateForLens;
|
||||
} else {
|
||||
this->actor.update = Actor_Noop;
|
||||
|
|
Loading…
Reference in New Issue