When GameArg.CtlNoStickyKeys was introduced I forgot to add an actual check if -nostickykeys was supplied - fixed now

This commit is contained in:
zicodxx 2011-06-21 19:19:17 +02:00
parent 47c687d5fc
commit 1be064dfb9
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20110621
--------
misc/args.c: When GameArg.CtlNoStickyKeys was introduced I forgot to add an actual check if -nostickykeys was supplied - fixed now
20110620
--------
main/lighting.c: in compute_light_emission() handle RT_NONE for delayed explosion fireballs

View file

@ -146,6 +146,7 @@ void ReadCmdArgs(void)
GameArg.CtlNoMouse = FindArg("-nomouse");
GameArg.CtlNoJoystick = FindArg("-nojoystick");
GameArg.CtlNoStickyKeys = FindArg("-nostickykeys");
if (GameArg.CtlNoStickyKeys) // Must happen before SDL_Init!
SDL_putenv("SDL_DISABLE_LOCK_KEYS=1");
else