Prevent duplicate map object destruction
This commit is contained in:
parent
bef976abe6
commit
8e83f3635a
@ -245,6 +245,9 @@ void game::World::HandleContacts()
|
|||||||
|
|
||||||
void game::World::DestroyObject(net::ObjNum objnum)
|
void game::World::DestroyObject(net::ObjNum objnum)
|
||||||
{
|
{
|
||||||
|
if (destroyed_objs_.contains(objnum))
|
||||||
|
return;
|
||||||
|
|
||||||
SendObjDestroyedMsg(objnum);
|
SendObjDestroyedMsg(objnum);
|
||||||
destroyed_objs_.insert(objnum);
|
destroyed_objs_.insert(objnum);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user