Skip to content

Commit

Permalink
improve: add "async" identifier to save all players
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 2, 2024
1 parent e362953 commit e8639c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/scheduling/save_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void SaveManager::saveAll() {

Benchmark bm_players;
const auto &players = game.getPlayers();
logger.info("Saving {} players...", players.size());
const auto async = g_configManager().getBoolean(TOGGLE_SAVE_ASYNC);
logger.info("Saving {} players... (Async: {})", players.size(), async ? "Enabled" : "Disabled");
for (const auto &[_, player] : players) {
player->loginPosition = player->getPosition();
doSavePlayer(player);
Expand Down

0 comments on commit e8639c7

Please sign in to comment.