1
This commit is contained in:
parent
97fb7cd9d4
commit
eed14c5cec
@ -23,6 +23,9 @@ BatchSync::~BatchSync()
|
||||
|
||||
void BatchSync::AddGlobalObject(Creature* c)
|
||||
{
|
||||
if (c->IsOb()) {
|
||||
return;
|
||||
}
|
||||
if (global_object_hash_.find(c->GetUniId()) != global_object_hash_.end()) {
|
||||
abort();
|
||||
}
|
||||
@ -64,6 +67,9 @@ void BatchSync::RemoveGlobalObject(int obj_uniid)
|
||||
|
||||
void BatchSync::AddTeam(Team* team)
|
||||
{
|
||||
if (team->IsViewTeam()) {
|
||||
return;
|
||||
}
|
||||
if (team_hash_.find(team) != team_hash_.end()) {
|
||||
abort();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user