MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / removeMapLight

Method removeMapLight

source/gamemap/GameMap.cpp:2031–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029}
2030
2031void GameMap::removeMapLight(MapLight *m)
2032{
2033 OD_LOG_INF(serverStr() + "Removing MapLight " + m->getName());
2034
2035 std::vector<MapLight*>::iterator it = std::find(mMapLights.begin(), mMapLights.end(), m);
2036 if(it == mMapLights.end())
2037 {
2038 OD_LOG_ERR("MapLight name=" + m->getName());
2039 return;
2040 }
2041
2042 mMapLights.erase(it);
2043}
2044
2045MapLight* GameMap::getMapLight(const std::string& name) const
2046{

Callers 1

removeFromGameMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected