Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Add allowsavebasemap var #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SalatielSauer
Copy link
Member

@SalatielSauer SalatielSauer commented Nov 22, 2020

  • my contribution will be licensed under ZLIB (for code)

allowsavebasemap 0 comes as default and prevents saving maps that are included in the allmaps variable (data/maps.cfg).
I think it solves #61

Edit:
the problem with using strstr is that it returns a false positive if, for example, the map name is "abcd" and the player tries to save "abc"... I will be happy if someone can come up with a better solution, otherwise it should not be merged.

@SalatielSauer
Copy link
Member Author

I replaced strstr with listincludes as suggested by @q009, it should work now.

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

Successfully merging this pull request may close these issues.

1 participant