Fixed the morning start time while traveling on the world map

* it starts at 6:01 instead of 6:00, inconsistent with afternoon (12:00)
and night (18:00).

Fixed potential index out of bounds error in wmMapIdxToName_.

(ref. fallout2-ce/fallout2-ce#453)
This commit is contained in:
NovaRain
2026-05-13 10:08:43 +08:00
parent 7542e224dd
commit bb768282ef
+7
View File
@@ -4557,6 +4557,13 @@ void BugFixes::init() {
// Fix for minor visual glitch when selecting perks that modify SPECIAL stats // Fix for minor visual glitch when selecting perks that modify SPECIAL stats
const DWORD printStatBufWidthAddr[] = {0x434C76, 0x434D2A, 0x434E00, 0x434EB5}; const DWORD printStatBufWidthAddr[] = {0x434C76, 0x434D2A, 0x434E00, 0x434EB5};
SafeWriteBatch<BYTE>(65, printStatBufWidthAddr); // PrintBasicStat_ (was 40) SafeWriteBatch<BYTE>(65, printStatBufWidthAddr); // PrintBasicStat_ (was 40)
// Fix potential index out of bounds error in wmMapIdxToName_ engine function
SafeWrite8(0x4BF97A, 0x7E); // jz > jle
SafeWrite8(0x4BF982, 0x7C); // jle > jl
// Fix for the morning starting at 6:01 instead of 6:00 while traveling on the world map
SafeWrite8(0x4C0765, 0x7C); // jle > jl (wmRndEncounterOccurred_)
} }
} }