From 0a963ce7db1b7fd9da24d6e7ae1ff3a9ef774f91 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Mon, 2 Mar 2015 19:13:37 +0100 Subject: [PATCH] fixup --- src/game_end_exceptions.hpp | 2 +- src/replay.cpp | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/src/game_end_exceptions.hpp b/src/game_end_exceptions.hpp index 78a092d8a666..81fbaf7ab56a 100644 --- a/src/game_end_exceptions.hpp +++ b/src/game_end_exceptions.hpp @@ -181,8 +181,8 @@ struct end_level_data bool prescenario_save; /**< Should a prescenario be created the next game? */ bool replay_save; /**< Should a replay save be made? */ bool proceed_to_next_level; /**< whether to proceed to the next scenario, equals is_victory in sp. We need to save this in saves during linger mode. > */ - transient_end_level transient; bool is_victory; + transient_end_level transient; void write(config& cfg) const; void read(const config& cfg); diff --git a/src/replay.cpp b/src/replay.cpp index b77595f87ada..00605e16619a 100644 --- a/src/replay.cpp +++ b/src/replay.cpp @@ -649,31 +649,6 @@ replay& get_replay_source() return recorder; } -static void check_checksums(const config &cfg) -{ - if(! game_config::mp_debug) { - return; - } - BOOST_FOREACH(const config &ch, cfg.child_range("checksum")) - { - map_location loc(ch, resources::gamedata); - unit_map::const_iterator u = resources::units->find(loc); - if (!u.valid()) { - std::stringstream message; - message << "non existent unit to checksum at " << loc.x+1 << "," << loc.y+1 << "!"; - resources::screen->get_chat_manager().add_chat_message(time(NULL), "verification", 1, message.str(), - events::chat_handler::MESSAGE_PRIVATE, false); - continue; - } - if (get_checksum(*u) != ch["value"]) { - std::stringstream message; - message << "checksum mismatch at " << loc.x+1 << "," << loc.y+1 << "!"; - resources::screen->get_chat_manager().add_chat_message(time(NULL), "verification", 1, message.str(), - events::chat_handler::MESSAGE_PRIVATE, false); - } - } -} - bool replay::add_start_if_not_there_yet() { //this method would confuse the value of 'pos' otherwise