| 2608 | } |
| 2609 | |
| 2610 | bool CGameScreen::OnRightMouseButtonDoubleClick() |
| 2611 | { |
| 2612 | if (g_ConfigManager.EnablePathfind && g_SelectedObject.Object != nullptr && |
| 2613 | g_SelectedObject.Object->IsWorldObject() && !g_PathFinder.AutoWalking) |
| 2614 | { |
| 2615 | CRenderWorldObject *rwo = (CRenderWorldObject *)g_SelectedObject.Object; |
| 2616 | if (rwo->IsLandObject() || rwo->IsSurface()) |
| 2617 | { |
| 2618 | if (g_PathFinder.WalkTo(rwo->GetX(), rwo->GetY(), rwo->GetZ(), 0)) |
| 2619 | { |
| 2620 | g_Game.CreateTextMessage(TT_OBJECT, g_PlayerSerial, 3, 0, "Pathfinding!"); |
| 2621 | return true; |
| 2622 | } |
| 2623 | } |
| 2624 | } |
| 2625 | |
| 2626 | return false; |
| 2627 | } |
| 2628 | |
| 2629 | void CGameScreen::OnMidMouseButtonScroll(bool up) |
| 2630 | { |
nothing calls this directly
no test coverage detected