Commit 20b0897
committed
entities: fix Destroy() not being called in some cases (#139)
when a player disconnects and is replaced by a bot, the bot may have the
same entity-ID as the player.
also the player's entity may not have been destroyed, since the
PVS-leave update was never sent.
for this case we need to make sure old entities are destoryed before
calling ReadEnterPVS().1 parent cd04f93 commit 20b0897
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments