# HG changeset patch # User Alys Brooks # Date 2022-04-27 06:55:09 # Node ID 23ef03510ae54120aa268ec3258ed583001e01f3 # Parent 628e13aebaa0684ea0a00238f753d9447ea56ef8 Fix crash. diff --git a/TODO.taskpaper b/TODO.taskpaper --- a/TODO.taskpaper +++ b/TODO.taskpaper @@ -231,4 +231,8 @@ Aborted (core dumped) - Segfault on quit (when it tries to dispose of the sound) or on playing sound on Linux May be due to a quirk of my Linux setup + - Drawing error when clicking sometimes on main screen. @done(2022-04-27) + Tries to draw area? + - Crash when extending preserve past bottom. + diff --git a/isometric-park-fna/Engines/InputEngine.cs b/isometric-park-fna/Engines/InputEngine.cs --- a/isometric-park-fna/Engines/InputEngine.cs +++ b/isometric-park-fna/Engines/InputEngine.cs @@ -265,7 +265,7 @@ #endregion #region mouse_click - if (!io.WantCaptureMouse) { + if (isPlaying && !io.WantCaptureMouse) { if (mouseCur.RightButton == ButtonState.Pressed && mousePrev.RightButton == ButtonState.Released) { SendMessage(new JumpCameraMessage {Movement = original_point}); diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -723,7 +723,7 @@ drawTileAt(10, 4, 142, 3); for (int i = 10; i < 199; i++) { - drawTileAt(10, i, 281, 1); + drawTileAt(10, i, 281, 1); } drawTileAt(10, 199, 284, 1); drawTileAt(11, 199, 280, 1);