Author: jhinrichs
Date: Sun Apr 26 15:14:05 2009
New Revision: 35234
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35234&view=rev
Log:
Savegame reorganization Step 1: Providing a simpler interface to saving and
loading.
Reduce dependencies for savegame.cpp.
Modified:
trunk/src/savegame.cpp
Modified: trunk/src/savegame.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/savegame.cpp?rev=35234&r1=35233&r2=35234&view=diff
==============================================================================
--- trunk/src/savegame.cpp (original)
+++ trunk/src/savegame.cpp Sun Apr 26 15:14:05 2009
@@ -19,7 +19,6 @@
#include "foreach.hpp"
#include "game_end_exceptions.hpp"
#include "game_events.hpp"
-#include "game_preferences.hpp" //FIXME: get rid of this one
#include "gettext.hpp"
#include "gui/dialogs/game_save.hpp"
#include "gui/widgets/window.hpp"
@@ -508,7 +507,7 @@
}
std::string filename = filename_;
- if (res == gui2::twindow::OK &&
savegame_manager::save_game_exists(filename, preferences::compress_saves())) {
+ if (res == gui2::twindow::OK &&
savegame_manager::save_game_exists(filename, compress_saves_)) {
std::stringstream s;
s << _("Save already exists. Do you want to
overwrite it?")
<< std::endl << _("Name: ") << filename;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits