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 Feb 14, 2024
1 parent 3a982a5 commit f34599f
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 @@ -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)
Expand Down

0 comments on commit f34599f

Please sign in to comment.