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

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

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


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src game.cpp playturn.cpp replay.cpp re...
Date: Sun, 21 Nov 2004 17:07:50 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/21 22:00:07

Modified files:
        src            : game.cpp playturn.cpp replay.cpp replay.hpp 

Log message:
        Remove unused parameter.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.163&tr2=1.164&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.293&tr2=1.294&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/replay.cpp.diff?tr1=1.85&tr2=1.86&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/replay.hpp.diff?tr1=1.27&tr2=1.28&r1=text&r2=text

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.163 wesnoth/src/game.cpp:1.164
--- wesnoth/src/game.cpp:1.163  Thu Nov 18 22:00:12 2004
+++ wesnoth/src/game.cpp        Sun Nov 21 22:00:06 2004
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.163 2004/11/18 22:00:12 ydirson Exp $ */
+/* $Id: game.cpp,v 1.164 2004/11/21 22:00:06 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -139,7 +139,7 @@
                                                try {
                                                        config snapshot;
 
-                                                       
recorder.save_game(units_data,label,snapshot,state.starting_pos);
+                                                       
recorder.save_game(label, snapshot, state.starting_pos);
                                                } 
catch(gamestatus::save_game_failed& e) {
                                                        e;
                                                        
gui::show_dialog(disp,NULL,"",_("The game could not be saved"),gui::MESSAGE);
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.293 wesnoth/src/playturn.cpp:1.294
--- wesnoth/src/playturn.cpp:1.293      Sun Nov 21 21:25:48 2004
+++ wesnoth/src/playturn.cpp    Sun Nov 21 22:00:06 2004
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.293 2004/11/21 21:25:48 silene Exp $ */
+/* $Id: playturn.cpp,v 1.294 2004/11/21 22:00:06 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1146,7 +1146,7 @@
        write_game_snapshot(snapshot);
        try {
                config starting_pos;
-               
recorder.save_game(gameinfo_,_("Auto-Save"),snapshot,state_of_game_.starting_pos);
+               recorder.save_game(_("Auto-Save"), snapshot, 
state_of_game_.starting_pos);
        } catch(gamestatus::save_game_failed&) {
                gui::show_dialog(gui_,NULL,"",_("Could not auto save the game. 
Please save the game manually."),gui::MESSAGE);
                //do not bother retrying, since the user can just save the game
@@ -1399,7 +1399,7 @@
                config snapshot;
                write_game_snapshot(snapshot);
                try {
-                       
recorder.save_game(gameinfo_,label,snapshot,state_of_game_.starting_pos);
+                       recorder.save_game(label, snapshot, 
state_of_game_.starting_pos);
                        if(dialog_type != gui::NULL_DIALOG) {
                                gui::show_dialog(gui_,NULL,_("Saved"),_("The 
game has been saved"), gui::OK_ONLY);
                        }
Index: wesnoth/src/replay.cpp
diff -u wesnoth/src/replay.cpp:1.85 wesnoth/src/replay.cpp:1.86
--- wesnoth/src/replay.cpp:1.85 Thu Nov 18 22:00:12 2004
+++ wesnoth/src/replay.cpp      Sun Nov 21 22:00:06 2004
@@ -1,4 +1,4 @@
-/* $Id: replay.cpp,v 1.85 2004/11/18 22:00:12 ydirson Exp $ */
+/* $Id: replay.cpp,v 1.86 2004/11/21 22:00:06 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -226,8 +226,8 @@
        return at_end() == false && skip_ != 0;
 }
 
-void replay::save_game(game_data& data, const std::string& label, const 
config& snapshot,
-                                          const config& starting_pos, bool 
include_replay)
+void replay::save_game(const std::string& label, const config& snapshot,
+                       const config& starting_pos, bool include_replay)
 {
        log_scope("replay::save_game");
        saveInfo_.snapshot = snapshot;
Index: wesnoth/src/replay.hpp
diff -u wesnoth/src/replay.hpp:1.27 wesnoth/src/replay.hpp:1.28
--- wesnoth/src/replay.hpp:1.27 Sun Oct  3 19:23:10 2004
+++ wesnoth/src/replay.hpp      Sun Nov 21 22:00:06 2004
@@ -1,4 +1,4 @@
-/* $Id: replay.hpp,v 1.27 2004/10/03 19:23:10 Sirp Exp $ */
+/* $Id: replay.hpp,v 1.28 2004/11/21 22:00:06 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -44,7 +44,8 @@
        void next_skip();
        bool skipping() const;
 
-       void save_game(game_data& data, const std::string& label, const config& 
snapshot, const config& starting_pos, bool include_replay=true);
+       void save_game(const std::string& label, const config& snapshot,
+                      const config& starting_pos, bool include_replay = true);
 
        void add_recruit(int unit_index, const gamemap::location& loc);
        void add_recall(int unit_index, const gamemap::location& loc);




reply via email to

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