fix(boats): Fixes boat movement issues (#567)

- [X] Fixes entity enumerator short circuiting when it hit a bad case
- [X] Fixes order of moving entities because boat pieces that constitute tiles must be moved after objects that stand on them. (The llama problem).

TODO: Implement packet of packets for displaying boats

Notes:
- In the future, we will have z-sorted lists, and we can iterate from highest to lowest, which will avoid the llama problem naturally.
This commit is contained in:
Kamron Batman 2021-04-10 17:22:50 -07:00 • committed by GitHub
parent 529abb4283
commit ee61c5a257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 96 deletions

View file

@ -48,6 +48,8 @@ namespace Server.Multis.Boats
foreach (var ent in ents)
{
// If we assume that the entities list contains everything a player can see,
// then this can be removed and the packet can be written once and copied to improve performance
if (!beholder.CanSee(ent))
{
continue;