From c26cd45b5bb46c438de150c4f3700734772ecbae Mon Sep 17 00:00:00 2001 From: NovaRain Date: Sun, 29 Dec 2019 01:58:02 +0800 Subject: [PATCH] Increased the width of the total weight display in the inventory (moved from the CritterInvSizeLimitMode option) Minor format edits to README.md. --- README.md | 8 ++++---- sfall/Inventory.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e43f9ea1..e1f49bf4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # sfall -A set of engine modifications for the classic game Fallout 2 in form of a DLL, which modifies executable in memory without changing anything in EXE file itself. +A set of engine modifications for the classic game Fallout 2 in form of a DLL, which modifies executable in memory without changing anything in EXE file itself. -Engine modifications include: +**Engine modifications include:** - Better support for modern operating systems - Externalizing many settings like starting map and game time, skills, perks, critical hit tables, books, etc. - Bug fixes @@ -10,7 +10,7 @@ Engine modifications include: - Extended scripting capabilities for modders (many new opcodes to control sfall features as well as previously unavailable vanilla engine functions) -Original author: timeslip +Original author: timeslip -Original description: A set of engine modifications for the classic game Fallout 2 by Interplay. Includes fixes for bugs in the original engine, allows fallout to run correctly on modern operating systems, and adds additional features for modders. +Original description: A set of engine modifications for the classic game Fallout 2 by Interplay. Includes fixes for bugs in the original engine, allows fallout to run correctly on modern operating systems, and adds additional features for modders. diff --git a/sfall/Inventory.cpp b/sfall/Inventory.cpp index 8588bbb0..3482983a 100644 --- a/sfall/Inventory.cpp +++ b/sfall/Inventory.cpp @@ -698,8 +698,6 @@ void InventoryInit() { SafeWrite8(0x47260F, 0x20); SafeWrite32(0x4725F9, 0x9C + 0x0C); SafeWrite8(0x472606, 0x10 + 0x0C); - SafeWrite32(0x472632, 150); // width - SafeWrite8(0x472638, 0); // x offset position // Display item size when examining HookCall(0x472FFE, inven_obj_examine_func_hook); @@ -716,6 +714,9 @@ void InventoryInit() { SafeWrite8(0x449150, 0x10 + 0x08); } } + // Adjust the max text width of the total weight display in the inventory + SafeWrite32(0x472632, 150); + SafeWrite8(0x472638, 0); // x offset position if (GetConfigInt("Misc", "SuperStimExploitFix", 0)) { Translate("sfall", "SuperStimExploitMsg", "You cannot use a super stim on someone who is not injured!", SuperStimMsg);