diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index df8fa3c85..1199c1213 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -589,6 +589,7 @@ void Client::gameInit() runCounters = config.getBoolValue("packetcounters"); applyVSync(); graphicsManager.setVideoMode(); + checkConfigVersion(); getConfigDefaults2(config.getDefaultValues()); applyGrabMode(); applyGamma(); @@ -2929,3 +2930,17 @@ void Client::updateScreenKeyboard(int height A_UNUSED) { // logger->log("keyboard height: %d", height); } + +void Client::checkConfigVersion() +{ + const int version = config.getIntValue("cfgver"); + if (version < 1) + { + if (config.getIntValue("fontSize") == 11) + config.deleteKey("fontSize"); + if (config.getIntValue("npcfontSize") == 13) + config.deleteKey("npcfontSize"); + } + + config.setValue("cfgver", 1); +} |