You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete nade projectiles & infernos at end of round (#43)
Sometimes grenade projectiles and infernos wouldn't be deleted at the
end of the round.
Now we just clean up when we get the game-event round_officially_ended
fixes#42
case"round_officially_ended": // Round ended. . . probably the event where you get teleported to the spawn (=> You can still walk around between round_end and this?)
82
+
case"round_officially_ended": // The event after which you get teleported to the spawn (=> You can still walk around between round_end and this event)
83
+
// Issue #42
84
+
// Sometimes grenades & infernos aren't deleted / destroyed via entity-updates at the end of the round,
85
+
// so we need to do it here for those that weren't.
86
+
//
87
+
// We're not deleting them from entitites though as that's supposed to be as close to the actual demo data as possible.
88
+
// We're also not using Entity.Destroy() because it would - in some cases - be called twice on the same entity
89
+
// and it's supposed to be called when the demo actually says so (same case as with GameState.entities).
0 commit comments