mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 16:01:35 +00:00
Revert left/right movement
This commit is contained in:
parent
9c8dd54751
commit
40c37ce4c2
1 changed files with 2 additions and 32 deletions
34
src/m_menu.c
34
src/m_menu.c
|
@ -12506,22 +12506,7 @@ static void M_HandleSetupMultiPlayer(INT32 choice)
|
||||||
}
|
}
|
||||||
else if (itemOn == 2) // player color
|
else if (itemOn == 2) // player color
|
||||||
{
|
{
|
||||||
if (colorgrid)
|
setupm_fakecolor = setupm_fakecolor->prev;
|
||||||
{
|
|
||||||
UINT16 index = M_GetColorGridIndex(setupm_fakecolor->color);
|
|
||||||
INT32 x = M_GridIndexToX(index);
|
|
||||||
INT32 y = M_GridIndexToY(index);
|
|
||||||
|
|
||||||
x--;
|
|
||||||
|
|
||||||
index = M_GridPosToGridIndex(x, y);
|
|
||||||
setupm_fakecolor = M_GridIndexToMenuColor(index);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setupm_fakecolor = setupm_fakecolor->prev;
|
|
||||||
}
|
|
||||||
|
|
||||||
S_StartSound(NULL,sfx_menu1); // Tails
|
S_StartSound(NULL,sfx_menu1); // Tails
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -12561,22 +12546,7 @@ static void M_HandleSetupMultiPlayer(INT32 choice)
|
||||||
}
|
}
|
||||||
else if (itemOn == 2) // player color
|
else if (itemOn == 2) // player color
|
||||||
{
|
{
|
||||||
if (colorgrid)
|
setupm_fakecolor = setupm_fakecolor->next;
|
||||||
{
|
|
||||||
UINT16 index = M_GetColorGridIndex(setupm_fakecolor->color);
|
|
||||||
INT32 x = M_GridIndexToX(index);
|
|
||||||
INT32 y = M_GridIndexToY(index);
|
|
||||||
|
|
||||||
x++;
|
|
||||||
|
|
||||||
index = M_GridPosToGridIndex(x, y);
|
|
||||||
setupm_fakecolor = M_GridIndexToMenuColor(index);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setupm_fakecolor = setupm_fakecolor->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
S_StartSound(NULL,sfx_menu1); // Tails
|
S_StartSound(NULL,sfx_menu1); // Tails
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue