Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
organize all available statetype variables in a states[] array (#17)
* organize all available statetype variables in a states[] array This replaces the current relying on a specific order in which global variables are stored in the executable for e.g. saving and restoring of savegames and thus does not require the -fno-toplevel-reorder compiler flag anymore. Fixes #15. * add the files containing the states[] array * simplify pointer arithmetics in SaveTheGame()/LoadTheGame() * display a message and quit the game when an invalid savegame is loaded There is currently no other way to "unload" the savegame. * back to main menu on failure instead of quitting * add copyright headers to newly added files * prevent crashes for subsequent games when loading invalid savegame * add some minimalistic comments
- Loading branch information