mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
ecb27deeae
* Logging a warning when deleting the entity and it is not in any Region. * Searching every single region for an entity that is in none of them. Also: * Add workaround for bug in specs where deleting any entity clears the components before checking that the generation is correct (surprised that we haven't encounted bugs from this yet). * Properly update `tracked_entities` inside `RegionMap` when deleting an entity. Previously, we just relied on this being updated in `RegionMap::tick` by the absence of the `Pos` component at that index. However, this means if a new entity is created at that index after deletion and before calling `RegionMap::tick`, then this can be interpreted as an entity moving between regions rather than one being deleted and another created. It seems like this could lead to synchronization bugs like not creating the new entity on the client (although I haven't noticed this before, I think maybe we use newly inserted `Uid`s to detect new entities rather than the region system?). I think it could at least lead to sending redundant messages to synchronize the new entity. |
||
---|---|---|
.. | ||
examples/chat-cli | ||
i18n | ||
src | ||
Cargo.toml |