This commit is contained in:
aozhiwei 2023-05-17 13:08:48 +08:00
parent 3acef80048
commit aa20516d4f

View File

@ -318,6 +318,7 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
hum->RefreshView();
AddPlayerPostProc(hum);
NotifyUiUpdate();
frame_event.AddEnterGame(hum->GetWeakPtrRef());
GameLog::Instance()->GameStart(hum);
}
@ -431,6 +432,7 @@ void Room::CreateAndroid(int robot_num)
hum->FindLocation();
hum->RefreshView();
}
frame_event.AddEnterGame(hum->GetWeakPtrRef());
}
NotifyUiUpdate();
}
@ -1905,6 +1907,7 @@ void Room::RandRemoveAndroid()
for (auto& pair : human_hash_) {
pair.second->RemovePartObjects(hum);
}
frame_event.AddExitGame(hum->GetWeakPtrRef());
}
}