Forgor typedef

This commit is contained in:
Kermalis 2025-11-29 18:35:07 -05:00
parent 033015f132
commit c4f5d439d2
5 changed files with 6 additions and 6 deletions

View File

@ -4,6 +4,6 @@
#include "portrait_placement.h"
// See enum "PortraitPlacementID"
const struct PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id);
const PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id);
#endif // GUARD_DUNGEON_PORTRAIT_PLACEMENT_H

View File

@ -4,11 +4,11 @@
#include "structs/str_position.h"
// Size: R=0x8 | B=0x5
struct PortraitPlacementInfo
typedef struct PortraitPlacementInfo
{
/* 0x0 */ DungeonPos pos;
/* 0x4 */ bool8 flip;
};
} PortraitPlacementInfo;
// These are named like `PLACEMENT_X_Y` and `PLACEMENT_X_Y_FLIP`
enum PortraitPlacementID

View File

@ -13,7 +13,7 @@
// Looks like they defined `Y_MID_B` as 8 instead of 7 and that's why we have a duplicate placement
#define Y_B 8
static const struct PortraitPlacementInfo sPortraitPlacements[PLACEMENT_COUNT] = {
static const PortraitPlacementInfo sPortraitPlacements[PLACEMENT_COUNT] = {
[PLACEMENT_LEFT_BOTTOM_1] = { { X_L, Y_B }, FALSE },
[PLACEMENT_CENTERLEFT_CENTER] = { { X_CENTER_L, Y_CENTER }, FALSE },
[PLACEMENT_LEFT_BOTTOM_2] = { { X_L, Y_B }, FALSE },

View File

@ -444,7 +444,7 @@ void DisplayDungeonDialogue_Async(const struct DungeonDialogueStruct *dialogueIn
&& dialogueInfo->spriteId != 0x80
&& dialogueMonId != MONSTER_NONE)
{
const struct PortraitPlacementInfo *placementInfo = GetPortraitPlacementInfo(dialogueInfo->spritePlacementId);
const PortraitPlacementInfo *placementInfo = GetPortraitPlacementInfo(dialogueInfo->spritePlacementId);
monPortraitPtr = &monPortrait;
monPortraitPtr->faceFile = GetDialogueSpriteDataPtr(dialogueMonId);

View File

@ -6,7 +6,7 @@
#include "data/portrait_placements.h"
const struct PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id)
const PortraitPlacementInfo *GetPortraitPlacementInfo(u8 id)
{
return &sPortraitPlacements[id];
}