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 authored and AJenbo committed Feb 15, 2024
1 parent 706bc43 commit 8603696
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 8603696

Please sign in to comment.