mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-01 23:21:27 +00:00
MENU: m_menu.qc: use correct opcodes and formatting
This commit is contained in:
parent
1b95e9f54f
commit
708a5b652b
1 changed files with 3 additions and 3 deletions
|
@ -608,15 +608,15 @@ void(string id, float order, __inout string text, __inout float cursor) Menu_Pas
|
|||
draw_text_input(id, pos, size, safe, cursor);
|
||||
};
|
||||
|
||||
static string str2ascii(string s)
|
||||
static string(string s) str2ascii =
|
||||
{
|
||||
for (int i = 0; i < strlen(s); i++)
|
||||
{
|
||||
if (str2chr(s, i) < 32 || str2chr(s, i) > 126)
|
||||
if (s[i] < 32 || s[i] > 126)
|
||||
s[i] = 63; // question mark
|
||||
}
|
||||
return s;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Menu_ServerList(id, pos, size, scrollofs, num_servers)
|
||||
|
|
Loading…
Reference in a new issue