This commit is contained in:
gfgtdf 2015-03-02 19:13:37 +01:00
parent bfcd2695f2
commit 0a963ce7db
2 changed files with 1 additions and 26 deletions

View file

@ -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);

View file

@ -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