From 13cf81e15133656b4e90fb6b7ac3a251d356a74d Mon Sep 17 00:00:00 2001 From: NovaRain Date: Tue, 9 Aug 2022 21:32:59 +0800 Subject: [PATCH] Code edits to SpeedInventoryPCRotation Updated version number. --- artifacts/ddraw.ini | 6 +++--- sfall/Modules/Interface.cpp | 7 +------ sfall/version.h | 6 +++--- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index eaba7185..15354e81 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -1,5 +1,5 @@ ;sfall configuration settings -;v4.3.6.1 +;v4.3.7 [Main] ;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash @@ -453,7 +453,7 @@ NPCsTryToSpendExtraAP=0 AllowLargeTiles=0 ;Set to 1 to boost the maximum number of tile FRMs from 4096 to 16383 -;This option is always enabled in 4.3.6.1/3.8.36.1 or later. The information is left for reference only +;This option is always enabled in 4.3.7/3.8.37 or later. The information is left for reference only MoreTiles=1 ;Change the Skilldex cursor FRM numbers @@ -514,7 +514,7 @@ SpeedInterfaceCounterAnims=0 ScienceOnCritters=0 ;Modify this value to change the player's speed of rotation on the inventory and character screens -;Default is 166 +;Default is 166 (lower - faster; valid range: 0..1000) SpeedInventoryPCRotation=166 ;Modify the number of the extra interface boxes available to modders. (Default is 5, and the maximum is 95) diff --git a/sfall/Modules/Interface.cpp b/sfall/Modules/Interface.cpp index f561b62c..37cd0361 100644 --- a/sfall/Modules/Interface.cpp +++ b/sfall/Modules/Interface.cpp @@ -1071,12 +1071,7 @@ static void InterfaceWindowPatch() { } static void InventoryCharacterRotationSpeedPatch() { - long setting = IniReader::GetConfigInt("Misc", "SpeedInventoryPCRotation", 166); - if (setting != 166 && setting <= 1000) { - dlog("Applying SpeedInventoryPCRotation patch.", DL_INIT); - SafeWrite32(0x47066B, setting); - dlogr(" Done", DL_INIT); - } + SimplePatch(0x47066B, "Misc", "SpeedInventoryPCRotation", 166, 0, 1000); } static void UIAnimationSpeedPatch() { diff --git a/sfall/version.h b/sfall/version.h index 4bebf9c3..83a05583 100644 --- a/sfall/version.h +++ b/sfall/version.h @@ -24,7 +24,7 @@ #define VERSION_MAJOR 4 #define VERSION_MINOR 3 -#define VERSION_BUILD 6 -#define VERSION_REV 1 +#define VERSION_BUILD 7 +#define VERSION_REV 0 -#define VERSION_STRING "4.3.6.1" +#define VERSION_STRING "4.3.7"