summaryrefslogtreecommitdiff
path: root/src/code/z_map_exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_map_exp.c')
-rw-r--r--src/code/z_map_exp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code/z_map_exp.c b/src/code/z_map_exp.c
index e81b087fc..fab39d42b 100644
--- a/src/code/z_map_exp.c
+++ b/src/code/z_map_exp.c
@@ -11,8 +11,8 @@ s16 sEntranceIconMapIndex = 0;
void Map_SavePlayerInitialInfo(GlobalContext* globalCtx) {
Player* player = PLAYER;
- sPlayerInitialPosX = player->actor.posRot.pos.x;
- sPlayerInitialPosZ = player->actor.posRot.pos.z;
+ sPlayerInitialPosX = player->actor.world.pos.x;
+ sPlayerInitialPosZ = player->actor.world.pos.z;
sPlayerInitialDirection = (s16)((0x7FFF - player->actor.shape.rot.y) / 0x400);
}
@@ -326,8 +326,8 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
gDPSetEnvColor(OVERLAY_DISP++, 0, 0, 0, 255);
gDPSetCombineMode(OVERLAY_DISP++, G_CC_PRIMITIVE, G_CC_PRIMITIVE);
- tempX = player->actor.posRot.pos.x;
- tempZ = player->actor.posRot.pos.z;
+ tempX = player->actor.world.pos.x;
+ tempZ = player->actor.world.pos.z;
tempX /= R_COMPASS_SCALE_X;
tempZ /= R_COMPASS_SCALE_Y;
Matrix_Translate((R_COMPASS_OFFSET_X + tempX) / 10.0f, (R_COMPASS_OFFSET_Y - tempZ) / 10.0f, 0.0f, MTXMODE_NEW);
@@ -531,7 +531,7 @@ void Map_Update(GlobalContext* globalCtx) {
}
for (floor = 0; floor < 8; floor++) {
- if (player->actor.posRot.pos.y > gMapData->floorCoordY[mapIndex][floor]) {
+ if (player->actor.world.pos.y > gMapData->floorCoordY[mapIndex][floor]) {
break;
}
}