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: Mon, 28 Feb 2005 20:31:16 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/03/01 01:31:16

Modified files:
        src            : playturn.cpp 

Log message:
        added new debug mode command: gold to give the current side gold

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

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.335 wesnoth/src/playturn.cpp:1.336
--- wesnoth/src/playturn.cpp:1.335      Tue Mar  1 01:26:38 2005
+++ wesnoth/src/playturn.cpp    Tue Mar  1 01:31:15 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.335 2005/03/01 01:26:38 Sirp Exp $ */
+/* $Id: playturn.cpp,v 1.336 2005/03/01 01:31:15 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -2441,6 +2441,11 @@
 
                units_.erase(last_hex_);
                
units_.insert(std::pair<gamemap::location,unit>(last_hex_,unit(&i->second,1,false)));
+               gui_.invalidate(last_hex_);
+               gui_.invalidate_unit();
+       } else if(game_config::debug && cmd == "gold") {
+               
current_team().spend_gold(-lexical_cast_default<int>(data,1000));
+               gui_.redraw_everything();
        }
 }
 




reply via email to

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