Reduce global variables

FossilOrigin-Name: 02dbc547c1a4a13918d02cb6f5ba92dd653622303979dd09cc5e3d6d0f617203
This commit is contained in:
Jonathan Schleifer 2025-03-05 00:27:18 +00:00
parent 3a1bbe3110
commit 7ba16ed96a
7 changed files with 154 additions and 124 deletions

View file

@ -132,7 +132,7 @@ saycommand(char *init) // turns input to the command line on or off
else
SDL_StopTextInput();
if (!editmode)
keyrepeat = saycommandon;
Cube.sharedInstance.repeatsKeys = saycommandon;
if (!init)
init = "";
strcpy_s(commandbuf, init);