Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 18, 2025
1 parent 22e0e77 commit 7fc999a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8603,7 +8603,7 @@ std::string Game::generateVocationConditionHighscore(uint32_t vocation) {
return queryPart.str();
}

void Game::processHighscoreResults(const DBResult_ptr &result, const std::string& worldName, uint32_t playerID, uint8_t category, uint32_t vocation, uint8_t entriesPerPage) {
void Game::processHighscoreResults(const DBResult_ptr &result, const std::string &worldName, uint32_t playerID, uint8_t category, uint32_t vocation, uint8_t entriesPerPage) {
const auto &player = g_game().getPlayerByID(playerID);
if (!player) {
return;
Expand Down Expand Up @@ -8688,7 +8688,7 @@ std::string Game::generateHighscoreOrGetCachedQueryForOurRank(const std::string
return newQuery;
}

void Game::playerHighscores(const std::shared_ptr<Player> &player, HighscoreType_t type, uint8_t category, uint32_t vocation, const std::string& worldName, uint16_t page, uint8_t entriesPerPage) {
void Game::playerHighscores(const std::shared_ptr<Player> &player, HighscoreType_t type, uint8_t category, uint32_t vocation, const std::string &worldName, uint16_t page, uint8_t entriesPerPage) {
if (player->hasAsyncOngoingTask(PlayerAsyncTask_Highscore)) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/game/game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,12 +957,12 @@ class Game {
Worlds m_worlds;

void cacheQueryHighscore(const std::string &key, const std::string &query, uint32_t page, uint8_t entriesPerPage);
void processHighscoreResults(const DBResult_ptr &result, const std::string& worldName, uint32_t playerID, uint8_t category, uint32_t vocation, uint8_t entriesPerPage);
void processHighscoreResults(const DBResult_ptr &result, const std::string &worldName, uint32_t playerID, uint8_t category, uint32_t vocation, uint8_t entriesPerPage);

std::string generateVocationConditionHighscore(uint32_t vocation);
std::string generateHighscoreQuery(
const std::string &categoryName,
const std::string& worldName,
const std::string &worldName,
uint32_t page,
uint8_t entriesPerPage,
uint32_t vocation,
Expand Down

0 comments on commit 7fc999a

Please sign in to comment.