minor fixes

This commit is contained in:
flowtron
2022-05-06 20:46:31 +02:00
parent 464e58d482
commit 7d0b271c72
5 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -117,11 +117,11 @@ menuitem [My 486 0wnz y00 (8-10 FPS)] [ closecurmenu; maxfps 50; fpsra
menuitem [Slow machine (20-25 FPS)] [ closecurmenu; maxfps 50; fpsrange 20 25 ]
menuitem [Sensible default (30-40 FPS)] [ closecurmenu; maxfps 50; fpsrange 30 40 ]
menuitem [Solid 60 Hz (60-60 FPS)] [ closecurmenu; maxfps 100; fpsrange 60 60 ]
menuitem [Lockdown-Breakout (100-150 FPS)] [ closecurmenu; maxfps 150; fpsrange 100 150 ]
menuitem [Solid 144 Hz (144-144 FPS)] [ closecurmenu; maxfps 150; fpsrange 144 144 ]
menuitem [Gamer Geekout (150-240 FPS)] [ closecurmenu; maxfps 250; fpsrange 150 240 ]
menuitem [Solid 240 Hz (240-240 FPS)] [ closecurmenu; maxfps 250; fpsrange 240 240 ]
menuitem [I don't understand LOD (250+ FPS)] [ closecurmenu; maxfps 1000; fpsrange 250 1000 ]
menuitem [Lockdown-Breakout (100-150 FPS)] [ closecurmenu; maxfps 0; fpsrange 100 150 ]
menuitem [Solid 144 Hz (144-144 FPS)] [ closecurmenu; maxfps 0; fpsrange 144 144 ]
menuitem [Gamer Geekout (150-240 FPS)] [ closecurmenu; maxfps 0; fpsrange 150 240 ]
menuitem [Solid 240 Hz (240-240 FPS)] [ closecurmenu; maxfps 0; fpsrange 240 240 ]
menuitem [I don't understand LOD (250+ FPS)] [ closecurmenu; maxfps 0; fpsrange 250 1000 ]
//// Main > Settings > HUD ////
+1 -1
View File
@@ -11,7 +11,7 @@ const isSpect [ if (&& $numargs (isclient $arg1)) [ result (player $arg1 s
const pstat_score [
if (isclient $arg1) [
result (concat (player $arg1 flags) (player $arg1 frags) (player $arg1 deaths) (player $arg1 points) (player $arg1 team) (player $arg1 tks) (player $arg1 name))
result (concat (player $arg1 flags) (player $arg1 frags) (player $arg1 deaths) (player $arg1 team) (player $arg1 tks) (player $arg1 name))
] [ result (concat [0 0 0 0 -1 0] (addpunct)) ]
]
+1 -1
View File
@@ -792,7 +792,7 @@ void writekeymap() // create keymap.cfg with proper constants from SDL2 header f
{ SDLK_F15, "F15" },
{ SDLK_NUMLOCKCLEAR, "NUMLOCK" },
{ SDLK_CAPSLOCK, "CAPSLOCK" },
{ SDLK_SCROLLLOCK, "SCROLLOCK" },
{ SDLK_SCROLLLOCK, "SCROLLOCK" }, // fixing historic typo could break too much
{ SDLK_RSHIFT, "RSHIFT" },
{ SDLK_LSHIFT, "LSHIFT" },
{ SDLK_RCTRL, "RCTRL" },
+1 -1
View File
@@ -474,7 +474,7 @@ void filterlang(char *d, const char *s)
void filtercountrycode(char *d, const char *s) // returns exactly two uppercase chars or "--"
{
if(isalpha(s[0]) && isalpha(s[1]) && !s[2])
if(strlen(s) == 2 && isalpha(s[0]) && isalpha(s[1]))
{
d[0] = toupper(s[0]);
d[1] = toupper(s[1]);
+1 -1
View File
@@ -312,7 +312,7 @@ struct client // server side version of "dynent" type
void reset()
{
name[0] = pwd[0] = demoflags = 0;
name[0] = pwd[0] = country[0] = lang[0] = demoflags = 0;
ip = ip_censored = 0;
pubkeyhex[0] = '\0';
vita = NULL;