From a3c233004f6f25e2ca21629d2267abe6dd427734 Mon Sep 17 00:00:00 2001 From: Reonu Date: Tue, 5 Oct 2021 21:55:24 +0300 Subject: [PATCH] dpad down in aglabcam snaps to nearest axis instead of always going left --- src/game/camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/camera.c b/src/game/camera.c index 6a3cf85d..aa474d5d 100644 --- a/src/game/camera.c +++ b/src/game/camera.c @@ -1121,7 +1121,7 @@ void mode_8_directions_camera(struct Camera *c) { s8DirModeYawOffset += DEGREES(2); } else if (gPlayer1Controller->buttonPressed & D_JPAD) { - s8DirModeYawOffset = s8DirModeYawOffset&0xE000; + s8DirModeYawOffset = (s8DirModeYawOffset + 0x1000) & 0xE000; } #endif