| 869 | } |
| 870 | |
| 871 | void GameMap::removeActiveObject(GameEntity *a) |
| 872 | { |
| 873 | // Active objects are only used on server side |
| 874 | if(!isServerGameMap()) |
| 875 | return; |
| 876 | |
| 877 | auto it = std::find(mActiveObjects.begin(), mActiveObjects.end(), a); |
| 878 | if(it == mActiveObjects.end()) |
| 879 | { |
| 880 | OD_LOG_ERR("ActiveObject name=" + a->getName()); |
| 881 | return; |
| 882 | } |
| 883 | |
| 884 | mActiveObjects.erase(it); |
| 885 | } |
| 886 | |
| 887 | unsigned int GameMap::numClassDescriptions() |
| 888 | { |
no outgoing calls
no test coverage detected