mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-25 14:43:01 +00:00
rogueviz:: ads:: fix crash on some keys
This commit is contained in:
parent
0ad19f56ee
commit
3508ff4fd5
@ -88,7 +88,7 @@ void fire() {
|
||||
bool handleKey(int sym, int uni) {
|
||||
if(cmode & sm::NORMAL) {
|
||||
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 == SDLK_ESCAPE) pushScreen(game_menu);
|
||||
if(sym == SDLK_F1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user