mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
Merge pull request #75 from Peter0x44/main
This commit is contained in:
commit
595a9a5dd9
1 changed files with 4 additions and 13 deletions
|
@ -40,19 +40,10 @@ string(string source, float spec_key, float key, float max_length) GetUserInput
|
||||||
if (strlen(source) >= max_length)
|
if (strlen(source) >= max_length)
|
||||||
return source;
|
return source;
|
||||||
|
|
||||||
// Seriously bad HACKS incoming...
|
// Key is out of range (thanks Nuclide)
|
||||||
// The if statement is supposed to be checking "key" and not "spec_key"
|
if ((key < 32 || key > 125))
|
||||||
// but... checking key doesn't play nice with SDL for some reason.
|
|
||||||
// This breaks any letter/symbol you need to press shift to type.
|
|
||||||
// This includes capital letters.
|
|
||||||
// TODO TODO TODO Fix this... or hope the new revamp fixes it.
|
|
||||||
//if ((key < 32 || key > 125))
|
|
||||||
// return source
|
|
||||||
if ((spec_key < 32 || spec_key > 125))
|
|
||||||
return source;
|
return source;
|
||||||
|
|
||||||
// Append and send that shit out!
|
// Append and send that shit out!
|
||||||
// This is supposed to be appending "key"... but it isn't
|
return sprintf("%s%s", source, chr2str(key));
|
||||||
// too bad!
|
|
||||||
return sprintf("%s%s", source, chr2str(spec_key));
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue