debugprint game settings, fix sign of some settings

This commit is contained in:
Tim Felgentreff 2022-03-03 22:43:07 +01:00
parent 8b1ee58a6b
commit fe8aa30ab6
2 changed files with 9 additions and 4 deletions
src
include
stratagus

View file

@ -234,10 +234,10 @@ struct Settings {
SettingsPresets Presets[PlayerMax];
// Common settings:
uint8_t Resources; /// Preset resource factor
uint8_t NumUnits; /// Preset # of units
uint8_t Opponents; /// Preset # of ai-opponents
uint8_t Difficulty; /// Terrain type (summer,winter,...)
int8_t Resources; /// Preset resource factor
int8_t NumUnits; /// Preset # of units
int8_t Opponents; /// Preset # of ai-opponents
int8_t Difficulty; /// Terrain type (summer,winter,...)
GameTypes GameType; /// Game type (melee, free for all,...)
FieldOfViewTypes FoV; /// Which field of view is used - important to be shared for unit sight
MapRevealModes RevealMap; /// Reveal map kind

View file

@ -1307,6 +1307,11 @@ void DebugPlayers()
PlayerRaces.Name[Players[i].Race].c_str() _C_
Players[i].AiName.c_str());
}
DebugPrint("GameSettings\n");
DebugPrint("-- -------- - -------- ------------ ------- -----\n");
GameSettings.Save(+[](std::string f) {
DebugPrint("%s\n" _C_ f.c_str());
}, true);
#endif
}