Fix trying to save over existing map not doing anything (Thanks Fam0r)

This commit is contained in:
UnknownShadow200 2019-10-12 08:50:28 +11:00
parent bbd0af1912
commit 52ae9a2beb

View file

@ -1314,8 +1314,10 @@ static cc_bool SaveLevelScreen_KeyPress(void* screen, char keyChar) {
static cc_bool SaveLevelScreen_KeyDown(void* screen, Key key) { static cc_bool SaveLevelScreen_KeyDown(void* screen, Key key) {
struct SaveLevelScreen* s = (struct SaveLevelScreen*)screen; struct SaveLevelScreen* s = (struct SaveLevelScreen*)screen;
SaveLevelScreen_RemoveOverwrites(s); if (Elem_HandlesKeyDown(&s->input.base, key)) {
if (Elem_HandlesKeyDown(&s->input.base, key)) return true; SaveLevelScreen_RemoveOverwrites(s);
return true;
}
return MenuScreen_KeyDown(s, key); return MenuScreen_KeyDown(s, key);
} }