diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-08 21:30:30 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-01-08 21:30:30 +0100 |
commit | 00d23c61d99a0a676de2219da42d576b5c5c0474 (patch) | |
tree | 2a6d74663312bdb01b5ae1fd9abbd1c8fc5d857f /src/core/re3.cpp | |
parent | Merge pull request #909 from Fire-Head/master (diff) | |
download | re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.gz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.bz2 re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.lz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.xz re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.zst re3-00d23c61d99a0a676de2219da42d576b5c5c0474.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/re3.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 6f22e999..3cfc0ec0 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -214,6 +214,16 @@ void LoadINISettings() CustomPipes::LightmapMult = CheckAndReadIniFloat("CustomPipesValues", "LightmapMult", CustomPipes::LightmapMult); CustomPipes::GlossMult = CheckAndReadIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult); #endif + +#ifdef PROPER_SCALING + CDraw::ms_bProperScaling = CheckAndReadIniInt("Draw", "ProperScaling", CDraw::ms_bProperScaling); +#endif +#ifdef FIX_SPRITES + CDraw::ms_bFixRadar = CheckAndReadIniInt("Draw", "FixRadar", CDraw::ms_bFixRadar); +#endif +#ifdef FIX_RADAR + CDraw::ms_bFixSprites = CheckAndReadIniInt("Draw", "FixSprites", CDraw::ms_bFixSprites); +#endif } void SaveINISettings() @@ -252,6 +262,16 @@ void SaveINISettings() CheckAndSaveIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult, changed); #endif +#ifdef PROPER_SCALING + CheckAndSaveIniInt("Draw", "ProperScaling", CDraw::ms_bProperScaling, changed); +#endif +#ifdef FIX_SPRITES + CheckAndSaveIniInt("Draw", "FixRadar", CDraw::ms_bFixRadar, changed); +#endif +#ifdef FIX_RADAR + CheckAndSaveIniInt("Draw", "FixSprites", CDraw::ms_bFixSprites, changed); +#endif + if (changed) cfg.write_file("re3.ini"); } |