Ludeon Forums

RimWorld => Bugs => Topic started by: Autoquark on September 17, 2020, 08:08:48 AM

Title: Possible bug in ExplosionCellsToHit
Post by: Autoquark on September 17, 2020, 08:08:48 AM
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.
Title: Re: Possible bug in ExplosionCellsToHit
Post by: ison on September 17, 2020, 02:54:32 PM
Great find, it's a bug indeed. Thanks! We'll fix it.