Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 2, 2015
1 parent bfcd269 commit 0a963ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion src/game_end_exceptions.hpp
Expand Up @@ -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);
Expand Down
25 changes: 0 additions & 25 deletions src/replay.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 0a963ce

Please sign in to comment.