Be more lenient with spawning old, more free-form prototypes

This commit is contained in:
Griatch 2018-10-06 19:00:54 +02:00
parent dca73c707c
commit 7133492630
3 changed files with 46 additions and 11 deletions

View file

@ -2889,7 +2889,8 @@ class CmdSpawn(COMMAND_DEFAULT_CLASS):
"use the 'exec' prototype key.")
return None
try:
protlib.validate_prototype(prototype)
# we homogenize first, to be more lenient
protlib.validate_prototype(protlib.homogenize_prototype(prototype))
except RuntimeError as err:
self.caller.msg(str(err))
return