MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / RemoveMapLocation

Method RemoveMapLocation

ogsr_engine/xrGame/map_manager.cpp:171–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void CMapManager::RemoveMapLocation(const shared_str& spot_type, u16 id)
172{
173 FindLocationBySpotID key(spot_type, id);
174 Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
175 if (it != Locations().end())
176 {
177 if (1 == (*it).location->RefCount())
178 {
179 delete_data(*it);
180 Locations().erase(it);
181 }
182 else
183 (*it).location->Release();
184 }
185}
186
187void CMapManager::RemoveMapLocationByObjectID(u16 id) // call on destroy object
188{

Callers 6

map_remove_object_spotFunction · 0.80
LostPdaContactMethod · 0.80
SetTaskStateMethod · 0.80
UpdateCLMethod · 0.80
AddRemoveMapSpotMethod · 0.80
SendMessageMethod · 0.80

Calls 7

find_ifClass · 0.85
delete_dataFunction · 0.85
RefCountMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected