mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[7123] Cleanup in using STD's containers erase method.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
8171c9c61a
commit
ce384c5278
9 changed files with 23 additions and 69 deletions
|
|
@ -274,22 +274,6 @@ ObjectAccessor::UpdateObject(Object* obj, Player* exceptPlayer)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
ObjectAccessor::AddUpdateObject(Object *obj)
|
||||
{
|
||||
Guard guard(i_updateGuard);
|
||||
i_objects.insert(obj);
|
||||
}
|
||||
|
||||
void
|
||||
ObjectAccessor::RemoveUpdateObject(Object *obj)
|
||||
{
|
||||
Guard guard(i_updateGuard);
|
||||
std::set<Object *>::iterator iter = i_objects.find(obj);
|
||||
if( iter != i_objects.end() )
|
||||
i_objects.erase( iter );
|
||||
}
|
||||
|
||||
void
|
||||
ObjectAccessor::_buildUpdateObject(Object *obj, UpdateDataMapType &update_players)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue