mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
CON_Responder: *also* use CON_ShiftChar directly rather than have two different implementations that could desync
This commit is contained in:
parent
0845cf0775
commit
8e4e2eb0a9
1 changed files with 1 additions and 11 deletions
|
|
@ -1309,17 +1309,7 @@ boolean CON_Responder(event_t *ev)
|
||||||
else if (key == KEY_KPADSLASH)
|
else if (key == KEY_KPADSLASH)
|
||||||
key = '/';
|
key = '/';
|
||||||
|
|
||||||
// same capslock code as hu_stuff.c's HU_responder. Check there for details.
|
key = CON_ShiftChar(key);
|
||||||
if ((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z'))
|
|
||||||
{
|
|
||||||
if (shiftdown ^ capslock)
|
|
||||||
key = shiftxform[key];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (shiftdown)
|
|
||||||
key = shiftxform[key];
|
|
||||||
}
|
|
||||||
|
|
||||||
// enter a char into the command prompt
|
// enter a char into the command prompt
|
||||||
if (key < 32 || key > 127)
|
if (key < 32 || key > 127)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue