summaryrefslogtreecommitdiff
path: root/src/subtask/subtaskFastTravel.c
diff options
context:
space:
mode:
authorHenny022p <info@henny022.de>2025-03-03 13:27:44 +0000
committerHenny022p <info@henny022.de>2025-03-09 18:57:54 +0000
commite1f889e3cb1aa74a377d36810c4f20b6dce7e9a4 (patch)
treeebfb43d6678d6e197affac56ce8b28ce1613088e /src/subtask/subtaskFastTravel.c
parent58c948b8c4734bd7735edf918cae0af39771647c (diff)
replace ScreenTransitionData with Transition
the struct did exist twice
Diffstat (limited to 'src/subtask/subtaskFastTravel.c')
-rw-r--r--src/subtask/subtaskFastTravel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/subtask/subtaskFastTravel.c b/src/subtask/subtaskFastTravel.c
index b457a10c..40b1ca0f 100644
--- a/src/subtask/subtaskFastTravel.c
+++ b/src/subtask/subtaskFastTravel.c
@@ -17,7 +17,7 @@ void sub_080A6E70(void);
u32 sub_080A6D74(u32);
void sub_080A6EE0(u32 param_1);
-extern const ScreenTransitionData gUnk_08128024[];
+extern const Transition gUnk_08128024[];
void Subtask_FastTravel(void) {
FlushSprites();
@@ -179,10 +179,10 @@ void sub_080A6EE0(u32 param_1) {
u32 x;
u32 y;
RoomHeader* roomHeader;
- const ScreenTransitionData* ptr = &gUnk_08128024[param_1];
+ const Transition* ptr = &gUnk_08128024[param_1];
- x = (u16)ptr->playerXPos;
- y = (u16)ptr->playerYPos;
+ x = (u16)ptr->endX;
+ y = (u16)ptr->endY;
roomHeader = &gAreaRoomHeaders[ptr->area][ptr->room];
x += roomHeader->map_x;
y += roomHeader->map_y;