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
I am wondering if there is an error in chapter 61, which introduces the new movement system.
In the Apply teleports part, we first check if the depth of the teleport and the map's depth are the same. If that's not the case and we are not moving the player, the entity is teleported to another map, as depicted in the following code.
Please correct me if I am wrong, but I think we need to remove the entity from the spatial map (crate::spatial::remove_entity) instead of moving it, right? It is not anymore part of the current map. This problems sorts itself out the next time MapIndexingSystem runs, but succeeding systems of the current loop would still see incorrect information.
I am happy to create a pull request with the necessary changes, in case I am right with my assessment.
The text was updated successfully, but these errors were encountered:
I am wondering if there is an error in chapter 61, which introduces the new movement system.
In the Apply teleports part, we first check if the depth of the teleport and the map's depth are the same. If that's not the case and we are not moving the player, the entity is teleported to another map, as depicted in the following code.
Please correct me if I am wrong, but I think we need to remove the entity from the spatial map (
crate::spatial::remove_entity
) instead of moving it, right? It is not anymore part of the current map. This problems sorts itself out the next timeMapIndexingSystem
runs, but succeeding systems of the current loop would still see incorrect information.I am happy to create a pull request with the necessary changes, in case I am right with my assessment.
The text was updated successfully, but these errors were encountered: