DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
639 stars 172 forks source link

fix: out of order physics updates #1558

Closed EmosewaMC closed 4 months ago

EmosewaMC commented 4 months ago

fixes an issue where physics entities were not given a chance to be marked as sleeping, causing a initial sleeping calls to be missed and causing objects that collided with one another to not register new collisions since they were sleeping at the time the new collision fired off.

Tested that Brick Fury now corectly aggros the first spawn of enemies near by to him. Tested that the turrets in crux prime now correctly shoot the first wave of enemies that spawn.

EmosewaMC commented 4 months ago

just for a reference, the client runs through these two in this order too, gameobj and then physics.