change a warning to a log message, related to [attack] command
The core code seems to handle it just find when defender_weapon is not present, so this warning seems unnecessary. This will make it easier to use [do_command].
This commit is contained in:
parent
654c066550
commit
ab0b63dc58
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ SYNCED_COMMAND_HANDLER_FUNCTION(attack, child, /*use_undo*/, show, error_handler
|
|||
int def_weapon_num = child["defender_weapon"].to_int(-2);
|
||||
if (def_weapon_num == -2) {
|
||||
// Let's not gratuitously destroy backwards compatibility.
|
||||
WRN_REPLAY << "Old data, having to guess weapon\n";
|
||||
LOG_REPLAY << "Old data, having to guess weapon\n";
|
||||
def_weapon_num = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue