Skip to content

Commit

Permalink
Avoid the use of SetRndSeed() in AddStoryBook()
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Nov 24, 2023
1 parent def170b commit 236bd82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,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)
Expand Down

0 comments on commit 236bd82

Please sign in to comment.