| 5871 | } |
| 5872 | |
| 5873 | void CGame::OpenWorldMap() |
| 5874 | { |
| 5875 | size_t pluginsInfoCount = Crypt::GetPluginsCount(); |
| 5876 | if (pluginsInfoCount > 0u) |
| 5877 | { |
| 5878 | CPluginPacketOpenMap().SendToPlugin(); //TODO: query if plugin supports world map |
| 5879 | return; |
| 5880 | } |
| 5881 | |
| 5882 | int x = g_ConfigManager.GameWindowX + (g_ConfigManager.GameWindowWidth / 2) - 200; |
| 5883 | int y = g_ConfigManager.GameWindowY + (g_ConfigManager.GameWindowHeight / 2) - 150; |
| 5884 | |
| 5885 | CGumpWorldMap *gump = new CGumpWorldMap(x, y); |
| 5886 | gump->Called = true; |
| 5887 | |
| 5888 | g_GumpManager.AddGump(gump); |
| 5889 | } |
| 5890 | |
| 5891 | void CGame::OpenJournal() |
| 5892 | { |
no test coverage detected