mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
Fix trying to save over existing map not doing anything (Thanks Fam0r)
This commit is contained in:
parent
bbd0af1912
commit
52ae9a2beb
1 changed files with 4 additions and 2 deletions
|
@ -1314,8 +1314,10 @@ static cc_bool SaveLevelScreen_KeyPress(void* screen, char keyChar) {
|
|||
|
||||
static cc_bool SaveLevelScreen_KeyDown(void* screen, Key key) {
|
||||
struct SaveLevelScreen* s = (struct SaveLevelScreen*)screen;
|
||||
SaveLevelScreen_RemoveOverwrites(s);
|
||||
if (Elem_HandlesKeyDown(&s->input.base, key)) return true;
|
||||
if (Elem_HandlesKeyDown(&s->input.base, key)) {
|
||||
SaveLevelScreen_RemoveOverwrites(s);
|
||||
return true;
|
||||
}
|
||||
return MenuScreen_KeyDown(s, key);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue