Browse Source

Use cursor position for MouseActionType::OperateObject

pull/5409/head
obligaron 3 years ago committed by Anders Jenbo
parent
commit
c11463b615
  1. 3
      Source/track.cpp

3
Source/track.cpp

@ -110,8 +110,7 @@ void RepeatMouseAction()
break;
case MouseActionType::OperateObject:
if (ObjectUnderCursor != nullptr && !ObjectUnderCursor->isDoor()) {
// This should probably be cursPosition so paths to large objects are consistent
NetSendCmdLoc(MyPlayerId, true, CMD_OPOBJXY, ObjectUnderCursor->position);
NetSendCmdLoc(MyPlayerId, true, CMD_OPOBJXY, cursPosition);
}
break;
case MouseActionType::Walk:

Loading…
Cancel
Save