CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/01/29 04:13:18
Modified files:
src : playlevel.cpp
Log message:
fixed bug where sometimes a cursor other than the normal cursor could
remain after a scenario
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.172&tr2=1.173&r1=text&r2=text
Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.172 wesnoth/src/playlevel.cpp:1.173
--- wesnoth/src/playlevel.cpp:1.172 Fri Jan 28 08:21:22 2005
+++ wesnoth/src/playlevel.cpp Sat Jan 29 04:13:17 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.172 2005/01/28 08:21:22 ettin Exp $ */
+/* $Id: playlevel.cpp,v 1.173 2005/01/29 04:13:17 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -118,7 +118,10 @@
config* level, CVideo& video,
game_state& state_of_game,
const std::vector<config*>& story)
-{
+{
+ //guarantee the cursor goes back to 'normal' at the end of the level
+ const cursor::setter cursor_setter(cursor::NORMAL);
+
const int ticks = SDL_GetTicks();
LOG_NG << "in play_level()...\n";