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

Cleanup #3

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

Cleanup #3

wants to merge 2 commits into from

Conversation

ywrt
Copy link

@ywrt ywrt commented Aug 2, 2017

A number of small cleanups mostly aimed as reducing the amount of #ifdef'ing :)

michael added 2 commits August 2, 2017 11:09
1. Cleanup: Many of the #ifdef's around constructors are removed as no
longer neccessary.

2. Cleanup: mono_tum now takes an optional save filename (instead of 0 / 1)

3. Cleanup: System no longer implicitly saves the map. Instead, the user
should call System::SaveMap(filename). This allows saving a map to a
different filename than it was loaded from.

4. The filename to load a map from is passed into the System() constructor
rather than fetching it was settings. (part of allowing load and save
filenames to differ).

5. Bugfix: SaveMap and LoadMap now use 'filename' exclusively, instead of a
mix of 'filename' and 'mapfile'.
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

Successfully merging this pull request may close these issues.

1 participant