| 2029 | } |
| 2030 | |
| 2031 | void 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 | |
| 2045 | MapLight* GameMap::getMapLight(const std::string& name) const |
| 2046 | { |