fixed updating tile selection cursor position when using mouse in MM games
[rocksndiamonds.git] / src / events.c
index 4755d51ff57dc975ba1a27f91d45f02f7847fe2f..08e571d17427f418b066613bde349cb57c747b6e 100644 (file)
@@ -304,7 +304,8 @@ void HandleMouseCursor()
        cursor_inside_playfield &&
        DelayReached(&special_cursor_delay, special_cursor_delay_value))
     {
-      if (level.game_engine_type != GAME_ENGINE_TYPE_MM)
+      if (level.game_engine_type != GAME_ENGINE_TYPE_MM ||
+         tile_cursor.enabled)
        SetMouseCursor(CURSOR_PLAYFIELD);
     }
   }
@@ -416,6 +417,8 @@ void SetPlayerMouseAction(int mx, int my, int button)
     if (button && !motion_status)
       TapeTogglePause(TAPE_TOGGLE_MANUAL);
   }
+
+  SetTileCursorXY(lx, ly);
 }
 
 void SleepWhileUnmapped()