BananiumLabs / AtomBlast.io

Multiplayer arena game which takes place at the molecular level.
MIT License
1 stars 0 forks source link

serverSendObjectRemoval() invoked twice for single GameObject #61

Closed EnumC closed 5 years ago

EnumC commented 5 years ago

Due to serverSendObjectRemoval() being called twice for a single object, the console reports error since the object has already been destroyed. I have already implemented some redundancy to mitigate the errors by checking whether an object has been already destroyed prior to removing object, but this does not resolve the root cause of this issue.

Steps to Reproduce the Problem

  1. Join room
  2. Collect a single molecule
  3. Check log

Screenshots

bug1 -->

64bitpandas commented 5 years ago

Fixed in dfe35bb. socket.emit() was called twice in deleteObject().