Skip to content

Commit

Permalink
Fix level download regression in dedicated server
Browse files Browse the repository at this point in the history
Introduced in 9bcfa83
Fixes #252
  • Loading branch information
rafalh committed Aug 23, 2024
1 parent 2ae4397 commit 870f869
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion game_patch/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ FunHook<int()> rf_do_frame_hook{
int result = rf_do_frame_hook.call_target();
maybe_autosave();
debug_do_frame_post();
multi_level_download_update();
return result;
},
};
Expand All @@ -126,7 +127,6 @@ CodeInjection after_frame_render_hook{
if (!rf::is_dedicated_server) {
// Draw on top (after scene)
frametime_render_ui();
multi_render_level_download_progress();
#if !defined(NDEBUG) && defined(HAS_EXPERIMENTAL)
experimental_render();
#endif
Expand Down
2 changes: 1 addition & 1 deletion game_patch/multi/level_download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void level_download_init()
download_level_force_cmd.register_cmd();
}

void multi_render_level_download_progress()
void multi_level_download_update()
{
LevelDownloadManager::instance().process();
}
Expand Down
2 changes: 1 addition & 1 deletion game_patch/multi/multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct DashFactionServerInfo
std::optional<float> max_fov;
};

void multi_render_level_download_progress();
void multi_level_download_update();
void multi_do_patch();
void multi_after_full_game_init();
void multi_init_player(rf::Player* player);
Expand Down

0 comments on commit 870f869

Please sign in to comment.