Prevent undo and redo at points when they might break the program
This commit is contained in:
parent
f606fc6fc1
commit
2de5c90006
21 changed files with 79 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ void World::focus_update() {
|
|||
mousePreviousWorldVec = drawData.cam.c.from_space(main.input.mouse.pos);
|
||||
mouseWorldMove = drawData.cam.c.from_space(main.input.mouse.move);
|
||||
|
||||
if(!clientStillConnecting) {
|
||||
if(!clientStillConnecting && !drawProg.prevent_undo_or_redo()) {
|
||||
if(main.input.key(InputManager::KEY_UNDO).repeat)
|
||||
undo.undo();
|
||||
else if(main.input.key(InputManager::KEY_REDO).repeat)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue