Skip to content

Commit

Permalink
port: fixes #205 radial movement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonicboom committed Oct 29, 2023
1 parent 9b65199 commit 3feddd8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/game/activemenutick.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ void amTick(void)
s8 gotonextscreen = false;
s8 cstickx = joyGetStickXOnSample(j, contpadnum);
s8 csticky = joyGetStickYOnSample(j, contpadnum);
s8 crstickx = joyGetRStickXOnSample(j, contpadnum);
s8 crsticky = joyGetRStickYOnSample(j, contpadnum);
#ifdef AVOID_UB
// if cstickx is -128, it will get negated and stored into absstickx, negating it again if it's 8 bit
s32 absstickx;
Expand All @@ -75,8 +73,8 @@ void amTick(void)
g_AmMenus[g_AmIndex].allbots = false;

#ifndef PLATFORM_N64
s32 newstickx = (s32)cstickx + (s32)crstickx;
s32 newsticky = (s32)csticky + (s32)crsticky;
s32 newstickx = (s32)cstickx;
s32 newsticky = (s32)csticky;
if (j == 0 && g_Vars.currentplayernum == 0 && inputMouseIsLocked()) {
f32 mdx, mdy;
struct activemenu *am = &g_AmMenus[g_AmIndex];
Expand All @@ -98,8 +96,6 @@ void amTick(void)
buttonsstate = buttonsstate & D_JPAD;
cstickx = 0;
csticky = 0;
crstickx = 0;
crsticky = 0;
buttonspressed = 0;
}

Expand Down

0 comments on commit 3feddd8

Please sign in to comment.