Replace 4-character constants with enums

This covers only the places where they were used to indicate
a preset selection in constructors.

The usage in qdpict where they're actually passed to the Resource Manager,
as well as the 4-character constants representing file types and creator
codes, are still present.
This commit is contained in:
2020-02-21 00:15:56 -05:00
parent 3d7f8f1d2a
commit 7b93726383
14 changed files with 69 additions and 50 deletions

View File

@@ -2609,7 +2609,7 @@ void start_new_game(bool force) {
// Destroy the universe
univ.~cUniverse();
long party_type = 'dflt';
ePartyPreset party_type = PARTY_DEFAULT;
// display_intro();
// If system key held down, create debug party
@@ -2618,7 +2618,7 @@ void start_new_game(bool force) {
#else
if(kb::isKeyPressed(kb::LControl) || kb::isKeyPressed(kb::RControl))
#endif
party_type = 'dbug';
party_type = PARTY_DEBUG;
// And now, reconstruct the universe.
new(&univ) cUniverse(party_type);