mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 16:57:56 +00:00
rogueviz:: ads:: fix crash on some keys
This commit is contained in:
@@ -88,7 +88,7 @@ void fire() {
|
|||||||
bool handleKey(int sym, int uni) {
|
bool handleKey(int sym, int uni) {
|
||||||
if(cmode & sm::NORMAL) {
|
if(cmode & sm::NORMAL) {
|
||||||
int* t = multi::scfg_default.keyaction;
|
int* t = multi::scfg_default.keyaction;
|
||||||
if(t[sym] >= 16 && t[sym] < 32) return true;
|
if(sym >= 0 && sym < multi::SCANCODES && t[sym] >= 16 && t[sym] < 32) return true;
|
||||||
if(sym == 'v') pushScreen(game_menu);
|
if(sym == 'v') pushScreen(game_menu);
|
||||||
if(sym == SDLK_ESCAPE) pushScreen(game_menu);
|
if(sym == SDLK_ESCAPE) pushScreen(game_menu);
|
||||||
if(sym == SDLK_F1) {
|
if(sym == SDLK_F1) {
|
||||||
|
Reference in New Issue
Block a user