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

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

[Wesnoth-cvs-commits] wesnoth ./changelog src/game_events.cpp


From: ott
Subject: [Wesnoth-cvs-commits] wesnoth ./changelog src/game_events.cpp
Date: Wed, 25 May 2005 12:29:59 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     ott <address@hidden>    05/05/25 16:29:59

Modified files:
        .              : changelog 
        src            : game_events.cpp 

Log message:
        added [scroll_to] as per patch 3388 (resurrected from Won't Fix)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/changelog.diff?tr1=1.681&tr2=1.682&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game_events.cpp.diff?tr1=1.147&tr2=1.148&r1=text&r2=text

Patches:
Index: wesnoth/changelog
diff -u wesnoth/changelog:1.681 wesnoth/changelog:1.682
--- wesnoth/changelog:1.681     Mon May 23 09:07:15 2005
+++ wesnoth/changelog   Wed May 25 16:29:58 2005
@@ -79,6 +79,7 @@
    * new [random] representation as list allows complex scenarios to be saved
      (forum thread 5659)
    * better diagnostics on parsing: file inclusion sequence
+   * added [scroll_to] (patch #3388, forum thread 3235)
  * editor improvements:
    * fixed editor file chooser when starting directory has many files (#11698)
    * made the starting position in editor start at player 1 (#10625)
Index: wesnoth/src/game_events.cpp
diff -u wesnoth/src/game_events.cpp:1.147 wesnoth/src/game_events.cpp:1.148
--- wesnoth/src/game_events.cpp:1.147   Fri May  6 17:20:53 2005
+++ wesnoth/src/game_events.cpp Wed May 25 16:29:59 2005
@@ -1,4 +1,4 @@
-/* $Id: game_events.cpp,v 1.147 2005/05/06 17:20:53 ettin Exp $ */
+/* $Id: game_events.cpp,v 1.148 2005/05/25 16:29:59 ott Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -417,6 +417,12 @@
                screen->draw(true,true);
        }
 
+       else if(cmd == "scroll_to") {
+               const int xpos = atoi(cfg["x"].c_str());
+               const int ypos = atoi(cfg["y"].c_str());
+               screen->scroll_to_tile(xpos,ypos);
+       }
+
        else if(cmd == "scroll_to_unit") {
                unit_map::const_iterator u;
                for(u = units->begin(); u != units->end(); ++u){




reply via email to

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