Author: soliton
Date: Sat Apr  4 04:45:26 2009
New Revision: 34449

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34449&view=rev
Log:
save replay before advancing

Modified:
    trunk/src/server/game.hpp
    trunk/src/server/server.cpp

Modified: trunk/src/server/game.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/game.hpp?rev=34449&r1=34448&r2=34449&view=diff
==============================================================================
--- trunk/src/server/game.hpp (original)
+++ trunk/src/server/game.hpp Sat Apr  4 04:45:26 2009
@@ -152,6 +152,7 @@
        void send_to_one(simple_wml::document& data, const network::connection 
sock, std::string packet_type = "") const;
 
        void record_data(simple_wml::document* data);
+       void save_replay();
 
        /** The full scenario data. */
        simple_wml::document& level() { return level_; }
@@ -220,7 +221,6 @@
        void send_observerjoins(const network::connection sock=0) const;
        void send_observerquit(const player_map::const_iterator observer) const;
        void send_history(const network::connection sock) const;
-       void save_replay();
 
        /** In case of a host transfer, notify the new host about its status. */
        void notify_new_host();

Modified: trunk/src/server/server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=34449&r1=34448&r2=34449&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Sat Apr  4 04:45:26 2009
@@ -2093,6 +2093,7 @@
                                << ") while the scenario is not yet 
initialized.";
                        return;
                }
+               g->save_replay();
                size_t nsides = 0;
                const simple_wml::node::child_list& sides = 
data.root().children("side");
                for (simple_wml::node::child_list::const_iterator s = 
sides.begin(); s != sides.end(); ++s) {


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

Reply via email to