Possible bug in ExplosionCellsToHit

Started by Autoquark, September 17, 2020, 08:08:48 AM

Previous topic - Next topic

Autoquark

I was looking at the decompiled source for DamageWorker.ExplosionCellsToHit and I noticed that in the second loop, it only adds cells to adjWallCells if adjWallCells already contains that cell. Since adjWallCells starts out empty, this means that the second loop will never do anything. Not sure if this has any ingame effects, but it seems like it must be a bug - I suspect the intent was to check that adjWallCells does *not* already contain the cell.

ison

Great find, it's a bug indeed. Thanks! We'll fix it.