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/4930/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
f2e3ca3887
  1. 1
      Source/objects.cpp

1
Source/objects.cpp

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

Loading…
Cancel
Save