Adjusted the error message to reflect the name of the script.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19934 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
996493559a
commit
28b9d2af1d
|
@ -1,3 +1,8 @@
|
|||
2015-05-17 15:00 Daniel Hawkins (SilverNexus)
|
||||
|
||||
* python/tod/replace_in_map.py: Adjusted error messages that appeared
|
||||
to refer to an old name for the script.
|
||||
|
||||
2015-05-17 13:01 Daniel Hawkins (SilverNexus)
|
||||
|
||||
* scorn/houses/resir: Spelling change for stairwell message and
|
||||
|
|
|
@ -14,13 +14,13 @@ current = TimeOfDay()
|
|||
inverse = "inverse" in parameters and parameters["inverse"] == True
|
||||
match = False
|
||||
if not "match" in parameters:
|
||||
Crossfire.Log(Crossfire.LogError,"Script replace_in_map_period.py didn't get a 'match' parameter. Only got %s" %parameters)
|
||||
Crossfire.Log(Crossfire.LogError,"Script replace_in_map.py didn't get a 'match' parameter. Only got %s" %parameters)
|
||||
elif parameters["match"].lower() == "one":
|
||||
match=TimeOfDay().matchAny(parameters["when"]) != inverse
|
||||
elif parameters["match"].lower() == "all":
|
||||
match=TimeOfDay().matchAll(parameters["when"]) != inverse
|
||||
else:
|
||||
Crossfire.Log(Crossfire.LogError,"Script replace_in_map_period.py didn't get a 'match' parameter. Only got %s" %parameters)
|
||||
Crossfire.Log(Crossfire.LogError,"Script replace_in_map.py didn't get a 'match' parameter. Only got %s" %parameters)
|
||||
|
||||
#print "match is %s and alreadymatched is %s" %(match,alreadymatched)
|
||||
|
||||
|
|
Loading…
Reference in New Issue