1
0

Silverfish: correct search cube

This commit is contained in:
Tiger Wang 2020-12-23 22:40:45 +00:00
parent 14ada52f3a
commit 7f894b2f73

View File

@ -59,7 +59,7 @@ bool cSilverfish::DoTakeDamage(TakeDamageInfo &a_TDI)
// Search the faces of an increasingly large cube (so the positions closest get looked at first)
// of min 3, max 10, for infested blocks and spawn additional reinforcements:
for (int CubeSideLength = 3; CubeSideLength <= 10; CubeSideLength++)
for (int CubeSideLength = 3; CubeSideLength <= 10; CubeSideLength += 2)
{
const int HalfSide = CubeSideLength / 2;