diff --git a/Aquaria/SceneEditor.cpp b/Aquaria/SceneEditor.cpp index 988aa36..a41264c 100644 --- a/Aquaria/SceneEditor.cpp +++ b/Aquaria/SceneEditor.cpp @@ -2659,7 +2659,10 @@ void SceneEditor::update(float dt) { if (editingEntity) { - float add = (dsq->getGameCursorPosition().x - cursorOffset.x)/2.4f; + float cx = dsq->getGameCursorPosition().x; + float ex = editingEntity->position.x; + float dx = cx + cursorOffset.x - ex; + float add = dx/2.4f; if (core->getCtrlState()) { int a = (oldRotation + add)/45;