Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in options parsing #103

Open
NappingPiglet opened this issue Mar 3, 2024 · 0 comments
Open

Bug in options parsing #103

NappingPiglet opened this issue Mar 3, 2024 · 0 comments

Comments

@NappingPiglet
Copy link

if 'z' in mapoptions or mapoptions[0].isdigit():

Likely this is me being dumb, but I tried:

!map -options -mapsize 60x60 -bg https://www.dungeonscrawl.com/_next/static/media/fortress.eba6fae5.png

and got

Traceback (most recent call last):
Line 87, col 28
if 'z' in mapoptions or mapoptions[0].isdigit():
^^^^^^^^^^^^^
IndexError: string index out of range

Not sure if the logic is wrong, or if this will always fail as if there is a - in there

!map -options -djdjdj

So I think the issue is in the assumption that maptoptions only followed by the correct format, maybe a quick linting of the next option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant