fix periodic un-dragging in habit puzzle
This commit is contained in:
@@ -18,8 +18,11 @@ class Main extends Sprite
|
|||||||
"habits/default.txt";
|
"habits/default.txt";
|
||||||
};
|
};
|
||||||
function reloadModel(_) {
|
function reloadModel(_) {
|
||||||
t.setModel(new HabitModel(habitFile));
|
if (t.draggingSprite == null) {
|
||||||
t.model.save();
|
// TODO don't change camera position and zoom when this happens:
|
||||||
|
t.setModel(new HabitModel(habitFile));
|
||||||
|
t.model.save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reloadModel(null);
|
reloadModel(null);
|
||||||
new FlxTimer().start(30, reloadModel, 0);
|
new FlxTimer().start(30, reloadModel, 0);
|
||||||
|
Reference in New Issue
Block a user