Author: alink
Date: Wed May 28 21:57:03 2008
New Revision: 26901

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26901&view=rev
Log:
Forgot to refresh titlescreen after add-on download (which use a loadscreen)

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=26901&r1=26900&r2=26901&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Wed May 28 21:57:03 2008
@@ -2501,7 +2501,7 @@
                        if(game.play_multiplayer() == false) {
                                // Need a redraw because we can left the lobby 
without playing.
                                // (the redraw is only useless when canceling 
the multiplayer dialog)
-                               // FIXME: game.play_multiplayer() always return 
false (why?),
+                               // TODO: game.play_multiplayer() always return 
false (why?),
                                // perhaps change this to identify real 
"cancel" cases?
                                redraw_background = true;
                                continue;       
@@ -2526,6 +2526,9 @@
                        continue;
                } else if(res == gui::GET_ADDONS) {
                        game.manage_addons();
+                       // after the loadscreen, need a redraw
+                       // TODO: detect cancel action, to avoid the redraw when 
possible
+                       redraw_background = true;
                        continue;
                } else if(res == gui::BEG_FOR_UPLOAD) {
                        game.show_upload_begging();


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to