tomatenquark / code

The code that powers Tomatenquark
https://tomatenquark.github.io/
Other
34 stars 5 forks source link

Add allowsavebasemap var #65

Open SalatielSauer opened 3 years ago

SalatielSauer commented 3 years ago

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 commented 3 years ago

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