mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 20:54:52 +00:00
Deprecate [set_variable] format properly
This commit is contained in:
parent
6fc6fff227
commit
eb0453441e
@ -1198,8 +1198,10 @@ WML_HANDLER_FUNCTION(set_variable, /*event_info*/, cfg)
|
|||||||
var = value;
|
var = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
const t_string format = cfg["format"]; // Deprecated, use value
|
const t_string format = cfg["format"];
|
||||||
if(format.empty() == false) {
|
if(format.empty() == false) {
|
||||||
|
ERR_WML << "Usage of 'format' is deprecated, use 'rand' instead, "
|
||||||
|
"support will be removed in 1.9.2.\n";
|
||||||
var = format;
|
var = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user