This commit is contained in:
aozhiwei 2024-02-03 13:27:57 +08:00
parent 97fb7cd9d4
commit eed14c5cec

View File

@ -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();
}