Skip to content

Commit

Permalink
Fix deprecated macro messages being incorrectly registered
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 11, 2018
1 parent d94c9fb commit 37bf0e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/serialization/preprocessor.cpp
Expand Up @@ -1223,8 +1223,10 @@ bool preprocessor_data::get_chunk()
}
deprecation_version = game_config::wesnoth_version;
if(deprecation_level == 2 || deprecation_level == 3) {
skip_spaces();
deprecation_version = std::max(deprecation_version, version_info(read_word()));
}
skip_spaces();
if(!deprecation_detail.empty()){
deprecation_detail += '\n';
}
Expand Down Expand Up @@ -1399,9 +1401,9 @@ bool preprocessor_data::get_chunk()
try {
level = std::stoi(read_word());
} catch(std::invalid_argument&) {}
skip_spaces();
version_info version = game_config::wesnoth_version;
if(level == 2 || level == 3) {
skip_spaces();
version = version_info(read_word());
}
skip_spaces();
Expand Down

0 comments on commit 37bf0e0

Please sign in to comment.