From 8603696538ce01a1647f07d5ebdb00b2374d15e4 Mon Sep 17 00:00:00 2001 From: staphen Date: Fri, 24 Nov 2023 16:08:02 -0500 Subject: [PATCH] Avoid the use of SetRndSeed() in AddStoryBook() --- Source/objects.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index fcc68b1c8f9..0268c5140bb 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -1375,9 +1375,7 @@ void AddPedestalOfBlood(Object &pedestalOfBlood) void AddStoryBook(Object &storyBook) { - SetRndSeed(glSeedTbl[16]); - - storyBook._oVar1 = GenerateRnd(3); + storyBook._oVar1 = (glSeedTbl[16] >> 16) % 3; if (currlevel == 4) storyBook._oVar2 = StoryText[storyBook._oVar1][0]; else if (currlevel == 8)