Bugfix: Change instant warps to use ints instead of shorts (#500)

Additionally clean up some inconsistencies surrounding instant warps
This commit is contained in:
Gregory Heskett authored and GitHub committed 2022-09-30 17:41:58 -05:00
1 parent 8c56afddba
commit da4b4db7ae
4 files changed
+14 -13

No files matched your search

+4 -4
View File
@@ -540,12 +540,12 @@ static void level_cmd_create_instant_warp(void) {
warp = gAreas[sCurrAreaIndex].instantWarps + CMD_GET(u8, 2);
warp[0].id = 1;
warp[0].id = SURFACE_INSTANT_WARP_1B + CMD_GET(u8, 2);
warp[0].area = CMD_GET(u8, 3);
vec3s_set(warp[0].displacement, CMD_GET(s16, 4),
CMD_GET(s16, 6),
CMD_GET(s16, 8));
warp[0].displacement[0] = CMD_GET(s32, 4);
warp[0].displacement[1] = CMD_GET(s32, 8);
warp[0].displacement[2] = CMD_GET(s32, 12);
}
sCurrentCmd = CMD_NEXT;