Browse Source

[diablo] Fix shrine rng (#4529)

This bug was less sever in Diablo then Hellfire as it didn't fully initialize the object leading to them sometimes getting garbage as the RNG seed, but it was never working correctly.
pull/4685/head
qndel 4 years ago committed by GitHub
parent
commit
fc5b7b3462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Source/objects.cpp

1
Source/objects.cpp

@ -1219,6 +1219,7 @@ void AddBarrel(Object &barrel)
void AddShrine(int i)
{
Objects[i]._oRndSeed = AdvanceRndSeed();
bool slist[NumberOfShrineTypes];
Objects[i]._oPreFlag = true;

Loading…
Cancel
Save