Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

fix Mapeditor save #365

Closed snipercup closed 3 weeks ago

snipercup commented 4 weeks ago

Fixes #363 Requires #364

The changes in the map editor were directly applied to the dmap instance. That's why the changes remained after closing and re-opening the map in the map editor. I thought of adding another temporary map instance to keep an unedited copy, but I figured we can just use oldMap for this. See the comments for the reasoning.