From 3f189057327b3f7eed80fa25f20285171705f2f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?=
 <eriktorbjorn@users.sourceforge.net>
Date: Sun, 28 Mar 2004 13:13:16 +0000
Subject: [PATCH] Force the engine to pick a cursor after restoring a game.
 This appears to be needed when using the -x command-line option to restore a
 game, though I'm not quite sure why.

svn-id: r13400
---
 sword2/save_rest.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp
index d14e1da50b2..bb98ed81177 100644
--- a/sword2/save_rest.cpp
+++ b/sword2/save_rest.cpp
@@ -247,6 +247,9 @@ uint32 Sword2Engine::restoreGame(uint16 slotNo) {
 		_memory->freeMemory(saveBufferMem);
 	}
 
+	// Force the game engine to pick a cursor. This appears to be needed
+	// when using the -x command-line option to restore a game.
+	_mouseTouching = 1;
 	return errorCode;
 }