mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 07:22:03 +00:00
Merge branch 'master' into net-screen
This commit is contained in:
commit
24c615108f
1 changed files with 16 additions and 16 deletions
32
src/m_menu.c
32
src/m_menu.c
|
@ -2799,6 +2799,7 @@ boolean M_Responder(event_t *ev)
|
||||||
{
|
{
|
||||||
// detach any keys associated with the game control
|
// detach any keys associated with the game control
|
||||||
G_ClearControlKeys(setupcontrols, currentMenu->menuitems[itemOn].alphaKey);
|
G_ClearControlKeys(setupcontrols, currentMenu->menuitems[itemOn].alphaKey);
|
||||||
|
S_StartSound(NULL, sfx_shldls);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8680,23 +8681,22 @@ static void M_ChangecontrolResponse(event_t *ev)
|
||||||
setupcontrols[control][found] = ch-KEY_4JOY1+KEY_DBL4JOY1;
|
setupcontrols[control][found] = ch-KEY_4JOY1+KEY_DBL4JOY1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// check if change key1 or key2, or replace the two by the new
|
// check if change key1 or key2, or shuffle them along in a queue
|
||||||
found = 0;
|
found = 0;
|
||||||
if (setupcontrols[control][0] == KEY_NULL)
|
if (setupcontrols[control][0] != KEY_NULL)
|
||||||
found++;
|
{
|
||||||
if (setupcontrols[control][1] == KEY_NULL)
|
found++;
|
||||||
found++;
|
if (setupcontrols[control][1] != KEY_NULL)
|
||||||
if (found == 2)
|
setupcontrols[control][0] = setupcontrols[control][1];
|
||||||
{
|
}
|
||||||
found = 0;
|
G_CheckDoubleUsage(ch);
|
||||||
setupcontrols[control][1] = KEY_NULL; //replace key 1,clear key2
|
setupcontrols[control][found] = ch;
|
||||||
}
|
}
|
||||||
G_CheckDoubleUsage(ch);
|
S_StartSound(NULL, sfx_strpst);
|
||||||
setupcontrols[control][found] = ch;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
S_StartSound(NULL, sfx_skid);
|
||||||
|
|
||||||
M_StopMessage(0);
|
M_StopMessage(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue