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:
parent
529abb4283
commit
ee61c5a257
2 changed files with 60 additions and 96 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue