mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-16 14:30:26 -04:00
Document Minimap Icon Actor Flag (#1747)
* minimap flag * improve comment
This commit is contained in:
@@ -276,7 +276,7 @@ void MapDisp_Minimap_DrawActorIcon(PlayState* play, Actor* actor) {
|
||||
if ((posX > 0) && (posX < 0x3FF) && (posY > 0) && (posY < 0x3FF)) {
|
||||
OPEN_DISPS(play->state.gfxCtx);
|
||||
|
||||
if ((actor->category == ACTORCAT_PLAYER) && (actor->flags & ACTOR_FLAG_80000000)) {
|
||||
if ((actor->category == ACTORCAT_PLAYER) && (actor->flags & ACTOR_FLAG_MINIMAP_ICON_ENABLED)) {
|
||||
s16 compassRot;
|
||||
|
||||
Gfx_SetupDL42_Overlay(play->state.gfxCtx);
|
||||
@@ -316,7 +316,7 @@ void MapDisp_Minimap_DrawActorIcon(PlayState* play, Actor* actor) {
|
||||
} else {
|
||||
Gfx_SetupDL39_Overlay(play->state.gfxCtx);
|
||||
gDPSetCombineMode(OVERLAY_DISP++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
||||
if (actor->flags & ACTOR_FLAG_80000000) {
|
||||
if (actor->flags & ACTOR_FLAG_MINIMAP_ICON_ENABLED) {
|
||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, sMinimapActorCategoryColors[actor->category].r,
|
||||
sMinimapActorCategoryColors[actor->category].g,
|
||||
sMinimapActorCategoryColors[actor->category].b, play->interfaceCtx.minimapAlpha);
|
||||
@@ -345,7 +345,8 @@ void MapDisp_Minimap_DrawActors(PlayState* play) {
|
||||
while (actor != NULL) {
|
||||
if ((actor->update != NULL) && (actor->init == NULL) &&
|
||||
Object_IsLoaded(&play->objectCtx, actor->objectSlot) &&
|
||||
((actor->id == ACTOR_EN_BOX) || (i == ACTORCAT_PLAYER) || (actor->flags & ACTOR_FLAG_80000000)) &&
|
||||
((actor->id == ACTOR_EN_BOX) || (i == ACTORCAT_PLAYER) ||
|
||||
(actor->flags & ACTOR_FLAG_MINIMAP_ICON_ENABLED)) &&
|
||||
((sMapDisp.curRoom == actor->room) || (actor->room == -1))) {
|
||||
MapDisp_Minimap_DrawActorIcon(play, actor);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#define FLAGS \
|
||||
(ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_10 | ACTOR_FLAG_20 | ACTOR_FLAG_200000 | \
|
||||
ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_CAN_PRESS_SWITCHES | ACTOR_FLAG_80000000)
|
||||
ACTOR_FLAG_UPDATE_DURING_OCARINA | ACTOR_FLAG_CAN_PRESS_SWITCHES | ACTOR_FLAG_MINIMAP_ICON_ENABLED)
|
||||
|
||||
ActorFunc sPlayerCallInitFunc;
|
||||
ActorFunc sPlayerCallDestroyFunc;
|
||||
|
||||
Reference in New Issue
Block a user