| 140 | } |
| 141 | |
| 142 | GameEditorModeBase::~GameEditorModeBase() |
| 143 | { |
| 144 | // Note that we don't stop culling because the gamemap has already been |
| 145 | // cleared when we are here |
| 146 | delete mMainCullingManager; |
| 147 | delete mMiniMap; |
| 148 | |
| 149 | // Delete the potential pending event messages |
| 150 | for (EventMessage* message : mEventMessages) |
| 151 | delete message; |
| 152 | |
| 153 | if(ODClient::getSingleton().isConnected()) |
| 154 | ODClient::getSingleton().disconnect(mKeepReplayAtDisconnect); |
| 155 | if(ODServer::getSingleton().isConnected()) |
| 156 | ODServer::getSingleton().stopServer(); |
| 157 | |
| 158 | // Now that the server is stopped, we can clear the client game map |
| 159 | mGameMap->clearAll(); |
| 160 | } |
| 161 | |
| 162 | void GameEditorModeBase::deactivate() |
| 163 | { |
nothing calls this directly
no test coverage detected