Ludeon Forums

Ludeon Forums

  • October 25, 2020, 09:02:17 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Possible bug in ExplosionCellsToHit  (Read 102 times)


  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Possible bug in ExplosionCellsToHit
« 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.


  • Developer
  • Planetologist
  • *****
  • Posts: 2430
    • View Profile
Re: Possible bug in ExplosionCellsToHit
« Reply #1 on: September 17, 2020, 02:54:32 PM »

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