mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 19:45:42 +00:00
Remove [stoned]->[petrified] compatibility hack. Do not bump min_savegame.
This commit is contained in:
parent
c735bc01a0
commit
4143d6f5d8
10
src/unit.cpp
10
src/unit.cpp
@ -2669,15 +2669,7 @@ void unit::add_modification(const std::string& type, const config& mod, bool no_
|
||||
const std::string &remove = effect["remove"];
|
||||
|
||||
if(add.empty() == false) {
|
||||
// FIXME: 1.6 compatibility hack
|
||||
// Remove after 1.7.2
|
||||
// (and bump min_savegame))
|
||||
if (add == "stoned") {
|
||||
set_state("petrified","yes");;
|
||||
lg::wml_error << "Usage of 'stoned' is deprecated use 'petrify' instead, "
|
||||
"support will be removed in 1.7.2.\n";
|
||||
} else
|
||||
set_state(add,"yes");
|
||||
set_state(add,"yes");
|
||||
}
|
||||
|
||||
if(remove.empty() == false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user