| 2579 | } |
| 2580 | |
| 2581 | void CGameScreen::OnRightMouseButtonUp() |
| 2582 | { |
| 2583 | if (g_PressedObject.RightGump != nullptr) |
| 2584 | { |
| 2585 | g_GumpManager.OnRightMouseButtonUp(false); |
| 2586 | } |
| 2587 | else if ( |
| 2588 | g_PressedObject.RightObject != nullptr && g_PressedObject.RightObject->IsGameObject() && |
| 2589 | g_SelectedGameObjectHandle == g_PressedObject.RightSerial) |
| 2590 | { |
| 2591 | ((CGameObject *)g_PressedObject.RightObject)->ClosedObjectHandle = true; |
| 2592 | } |
| 2593 | |
| 2594 | if ((g_ShiftPressed && !g_CtrlPressed && !g_AltPressed) && |
| 2595 | g_ConfigManager.HoldShiftForEnablePathfind && g_ConfigManager.EnablePathfind && |
| 2596 | g_SelectedObject.Object != nullptr && g_SelectedObject.Object->IsWorldObject() && |
| 2597 | !g_PathFinder.AutoWalking) |
| 2598 | { |
| 2599 | CRenderWorldObject *rwo = (CRenderWorldObject *)g_SelectedObject.Object; |
| 2600 | if (rwo->IsLandObject() || rwo->IsSurface()) |
| 2601 | { |
| 2602 | if (g_PathFinder.WalkTo(rwo->GetX(), rwo->GetY(), rwo->GetZ(), 0)) |
| 2603 | { |
| 2604 | g_Game.CreateTextMessage(TT_OBJECT, g_PlayerSerial, 3, 0, "Pathfinding!"); |
| 2605 | } |
| 2606 | } |
| 2607 | } |
| 2608 | } |
| 2609 | |
| 2610 | bool CGameScreen::OnRightMouseButtonDoubleClick() |
| 2611 | { |
nothing calls this directly
no test coverage detected