mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 09:34:35 -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) {
|
static cc_bool SaveLevelScreen_KeyDown(void* screen, Key key) {
|
||||||
struct SaveLevelScreen* s = (struct SaveLevelScreen*)screen;
|
struct SaveLevelScreen* s = (struct SaveLevelScreen*)screen;
|
||||||
|
if (Elem_HandlesKeyDown(&s->input.base, key)) {
|
||||||
SaveLevelScreen_RemoveOverwrites(s);
|
SaveLevelScreen_RemoveOverwrites(s);
|
||||||
if (Elem_HandlesKeyDown(&s->input.base, key)) return true;
|
return true;
|
||||||
|
}
|
||||||
return MenuScreen_KeyDown(s, key);
|
return MenuScreen_KeyDown(s, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue