Automatically finalize any delayed update objects

This commit is contained in:
Yousef Khadadeh 2025-12-18 23:37:37 +03:00
parent 8defbe7569
commit 66d372d810
4 changed files with 38 additions and 7 deletions

View file

@ -217,7 +217,7 @@ void World::focus_update() {
}
if(!clientStillConnecting) {
delayedUpdateObjectManager.update();
delayedUpdateObjectManager.update(netObjMan);
constexpr float SECONDS_TO_SEND_CAMERA_DATA = 0.5f;
timeToSendCameraData.update_time_since();
if(timeToSendCameraData.get_time_since() > SECONDS_TO_SEND_CAMERA_DATA) {