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
WorldMapObject: Do not update tile position every frame, ensure tile position stays valid in Editor
Makes a few changes to `WorldMapObject`, revolving around making it not have to `update()` its tile position based on sector position every frame:
* Overrides `set_pos()`, `move_to()` and `move()` from `MovingObject` to instead move the object to a floored tile position. This also ensures that positions set via scripting will continue to be floored as well.
* Updates tile position based on sector position in `after_editor_set()` for undo/redo support and allowing for X and Y tile position to be set via the object option (applicable for the properties sidebar, not merged into master yet).
0 commit comments