Replace magic numbers with less magic and more readable chars.

This commit is contained in:
GoldenTails 2019-12-29 18:26:56 -06:00
parent 1f93ab0e0f
commit ae9adce873

View file

@ -10436,7 +10436,8 @@ static void M_HandleConnectIP(INT32 choice)
if ( ctrldown ) { if ( ctrldown ) {
switch (choice) { switch (choice) {
case 118: // ctrl+v, pasting case 'v':
case 'V': // ctrl+v, pasting
; ;
char *paste = (char *)I_ClipboardPaste(); // Paste clipboard into char char *paste = (char *)I_ClipboardPaste(); // Paste clipboard into char
@ -10449,12 +10450,14 @@ static void M_HandleConnectIP(INT32 choice)
} }
break; break;
case 99: // ctrl+c, copying case 'c':
case 'C': // ctrl+c, copying
I_ClipboardCopy(setupm_ip, l); I_ClipboardCopy(setupm_ip, l);
S_StartSound(NULL,sfx_menu1); // Tails S_StartSound(NULL,sfx_menu1); // Tails
break; break;
case 120: // ctrl+x, cutting case 'x':
case 'X': // ctrl+x, cutting
I_ClipboardCopy(setupm_ip, l); I_ClipboardCopy(setupm_ip, l);
S_StartSound(NULL,sfx_menu1); // Tails S_StartSound(NULL,sfx_menu1); // Tails
setupm_ip[0] = 0; setupm_ip[0] = 0;