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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user