shithub: rott

Download patch

ref: 62585d8291a89a98119d3b5f078353ad77c8f60b
parent: abb641229351d84fdea729a622b359c3eb43d5ce
author: Emile Belanger <emile.belanger@gmail.com>
date: Sun Dec 27 11:50:55 EST 2020

Save/read hudRescaleFactor HUD Scale option to config

--- a/src/rt_cfg.c
+++ b/src/rt_cfg.c
@@ -64,6 +64,7 @@
 
 extern int G_weaponscale;
 extern boolean iG_aimCross;
+extern int hudRescaleFactor;
 
 boolean WriteSoundFile   = true;
 
@@ -495,6 +496,9 @@
             }
         }
 
+   		// Read in HUDScale
+        ReadInt("HUDScale",&hudRescaleFactor);
+
         // Read in MouseAdjustment
         ReadInt("MouseAdjustment",&mouseadjustment);
 
@@ -1744,6 +1748,11 @@
     }
     WriteParameter(file,"Weaponscale         ",G_weaponscale);
 
+
+ 	// Write out HUD Scale
+    SafeWriteString(file,"\n;\n");
+    SafeWriteString(file,"; HUD Scale.\n");
+    WriteParameter(file,"HUDScale            ",hudRescaleFactor);
 
     // Write out MouseAdjustment