mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
Replace magic numbers with less magic and more readable chars.
This commit is contained in:
parent
1f93ab0e0f
commit
ae9adce873
1 changed files with 7 additions and 4 deletions
11
src/m_menu.c
11
src/m_menu.c
|
@ -10436,7 +10436,8 @@ static void M_HandleConnectIP(INT32 choice)
|
|||
|
||||
if ( ctrldown ) {
|
||||
switch (choice) {
|
||||
case 118: // ctrl+v, pasting
|
||||
case 'v':
|
||||
case 'V': // ctrl+v, pasting
|
||||
;
|
||||
char *paste = (char *)I_ClipboardPaste(); // Paste clipboard into char
|
||||
|
||||
|
@ -10448,13 +10449,15 @@ static void M_HandleConnectIP(INT32 choice)
|
|||
S_StartSound(NULL,sfx_menu1); // Tails
|
||||
}
|
||||
break;
|
||||
|
||||
case 99: // ctrl+c, copying
|
||||
|
||||
case 'c':
|
||||
case 'C': // ctrl+c, copying
|
||||
I_ClipboardCopy(setupm_ip, l);
|
||||
S_StartSound(NULL,sfx_menu1); // Tails
|
||||
break;
|
||||
|
||||
case 120: // ctrl+x, cutting
|
||||
case 'x':
|
||||
case 'X': // ctrl+x, cutting
|
||||
I_ClipboardCopy(setupm_ip, l);
|
||||
S_StartSound(NULL,sfx_menu1); // Tails
|
||||
setupm_ip[0] = 0;
|
||||
|
|
Loading…
Reference in a new issue