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 Sep 17, 2024
1 parent 7c47601 commit 5c6cbeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10904,7 +10904,7 @@ void Game::playerBuyStoreOffer(uint32_t playerId, const Offer* offer, std::strin
player->sendStoreSuccess(returnmessage);

auto offerAmount = offer->getOfferCount();
auto pricePerItem = offerPrice ? offerPrice / offerAmount: 0;
auto pricePerItem = offerPrice ? offerPrice / offerAmount : 0;
g_logger().trace("[{}] offer price {}, offer ammount {}, price per item {}", __METHOD_NAME__, offerPrice, offerAmount, pricePerItem);
player->addStoreHistory(false, getTimeNow(), offerPrice, HistoryTypes_t::GIFT, offer->getOfferName(), player->getName());
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9694,7 +9694,7 @@ void ProtocolGame::parseStoreDetail(NetworkMessage &msg) {
}
}

void ProtocolGame::sendStoreDetail(const StoreHistoryDetail& storeDetail) {
void ProtocolGame::sendStoreDetail(const StoreHistoryDetail &storeDetail) {
auto pricePerCoin = storeDetail.totalPrice ? storeDetail.totalPrice / storeDetail.coinAmount : 0;

NetworkMessage newMsg;
Expand Down
2 changes: 1 addition & 1 deletion src/server/network/protocol/protocolgame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ class ProtocolGame final : public Protocol {
void parseSaveWheel(NetworkMessage &msg);
void parseWheelGemAction(NetworkMessage &msg);
void parseStoreDetail(NetworkMessage &msg);
void sendStoreDetail(const StoreHistoryDetail& storeDetail);
void sendStoreDetail(const StoreHistoryDetail &storeDetail);

friend class Player;
friend class PlayerWheel;
Expand Down

0 comments on commit 5c6cbeb

Please sign in to comment.