Matriks404 / openSMB2

An open source reimplementation of Super Mario Bros. 2 written in Lua and LÖVE.
GNU General Public License v3.0
32 stars 4 forks source link

If area file doesn't exist, create empty area #22

Closed Matriks404 closed 1 year ago

Matriks404 commented 1 year ago

Currently, if you switch areas in the game crashes.

Matriks404 commented 1 year ago

On the other hand we shouldn't do that, since it should have been copied over in the first place, and if we remove area it should be completely empty when created.

Matriks404 commented 1 year ago

Okay, just don't do that, if area have been defined but area file is missing it means that something is broken anyway, and we shouldn't act on that.

If that happens user can just manually edit settings file to remove conflicting area and add it directly through the level editor (or not, user's choice).