wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src playturn.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src playturn.cpp
Date: Fri, 28 Jan 2005 19:04:55 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/01/29 00:04:55

Modified files:
        src            : playturn.cpp 

Log message:
        fixed problem when pressing <space> to end a unit's turn caused the 
unit's path to remain on-screen if there was no other unit to select

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.325&tr2=1.326&r1=text&r2=text

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.325 wesnoth/src/playturn.cpp:1.326
--- wesnoth/src/playturn.cpp:1.325      Fri Jan 28 20:17:46 2005
+++ wesnoth/src/playturn.cpp    Sat Jan 29 00:04:54 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.325 2005/01/28 20:17:46 silene Exp $ */
+/* $Id: playturn.cpp,v 1.326 2005/01/29 00:04:54 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1301,9 +1301,11 @@
        if(un != units_.end() && un->second.side() == team_num_ && 
un->second.movement_left() >= 0) {
                un->second.set_user_end_turn(!un->second.user_end_turn());
                gui_.draw_tile(selected_hex_.x,selected_hex_.y);
-
+
+               gui_.set_route(NULL);
                gui_.set_paths(NULL);
-               current_paths_ = paths();
+               current_paths_ = paths();
+               gui_.draw();
 
                if(un->second.user_end_turn()) {
                        cycle_units();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]