Fixed most input validation bugs, and did too many improvements to remember. Did I mention that I am typing these words with my hands?
This commit is contained in:
parent
ee5c4da549
commit
4a398cc2a3
11 changed files with 546 additions and 253 deletions
|
@ -46,6 +46,8 @@ def parseCoords(level, args, usePlayerCoords = True, player = None):
|
|||
Returns (thing, x, y). "Thing" can be None."""
|
||||
if level == None:
|
||||
raise ValueError('Coordinates cannot be parsed because there is no map.')
|
||||
if len(args) == 0:
|
||||
return None, -1, -1
|
||||
x = -1
|
||||
y = -1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue