mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added upper limit to WorldMapDelay2
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
;sfall configuration settings
|
||||
;v3.8.45
|
||||
;v3.8.45.1
|
||||
|
||||
[Main]
|
||||
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
||||
@@ -286,7 +286,7 @@ WorldMapTimeMod=100
|
||||
WorldMapFPSPatch=1
|
||||
|
||||
;Controls the world map speed if WorldMapFPSPatch is 1. Higher values cause slower movement
|
||||
;Default is 66 milliseconds
|
||||
;Default is 66 milliseconds, and the maximum is 150
|
||||
WorldMapDelay2=66
|
||||
|
||||
;Set to 1 to enable Ray's patch to make world map encounter rate independent of your travel speed
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "..\main.h"
|
||||
#include "..\FalloutEngine\Fallout2.h"
|
||||
#include "..\Utils.h"
|
||||
#include "LoadGameHook.h"
|
||||
#include "ScriptExtender.h"
|
||||
#include "SpeedPatch.h"
|
||||
@@ -423,8 +424,7 @@ static void WorldmapFpsPatch() {
|
||||
if (IniReader::GetConfigInt("Misc", "WorldMapFPSPatch", 0)) {
|
||||
dlog("Applying world map fps patch.", DL_INIT);
|
||||
if (fpsPatchOK) {
|
||||
int delay = IniReader::GetConfigInt("Misc", "WorldMapDelay2", 66);
|
||||
worldMapDelay = max(1, delay);
|
||||
worldMapDelay = clamp(IniReader::GetConfigInt("Misc", "WorldMapDelay2", 66), 1, 150);
|
||||
dlogr(" Done", DL_INIT);
|
||||
} else {
|
||||
dlogr(" Failed", DL_INIT);
|
||||
|
||||
Reference in New Issue
Block a user