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 19, 2024
1 parent 7e58677 commit fe4113d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/creatures/players/player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ class Player final : public Creature, public Cylinder, public Bankable {
ReturnValue queryRemove(const std::shared_ptr<Thing> &thing, uint32_t count, uint32_t flags, const std::shared_ptr<Creature> &actor = nullptr) override;
std::shared_ptr<Cylinder> queryDestination(int32_t &index, const std::shared_ptr<Thing> &thing, std::shared_ptr<Item> &destItem, uint32_t &flags) override;

void addThing(const std::shared_ptr<Thing>&) override { }
void addThing(const std::shared_ptr<Thing> &) override { }
void addThing(int32_t index, const std::shared_ptr<Thing> &thing) override;

void updateThing(const std::shared_ptr<Thing> &thing, uint16_t itemId, uint32_t count) override;
Expand Down
2 changes: 1 addition & 1 deletion src/items/containers/mailbox/mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ReturnValue Mailbox::queryRemove(const std::shared_ptr<Thing> &, uint32_t, uint3
return RETURNVALUE_NOTPOSSIBLE;
}

std::shared_ptr<Cylinder> Mailbox::queryDestination(int32_t &, const std::shared_ptr<Thing> &, std::shared_ptr<Item>&, uint32_t &) {
std::shared_ptr<Cylinder> Mailbox::queryDestination(int32_t &, const std::shared_ptr<Thing> &, std::shared_ptr<Item> &, uint32_t &) {
return getMailbox();
}

Expand Down
2 changes: 1 addition & 1 deletion src/items/cylinder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class VirtualCylinder final : public Cylinder {
return nullptr;
}

virtual void addThing(const std::shared_ptr<Thing>&) override { }
virtual void addThing(const std::shared_ptr<Thing> &) override { }
virtual void addThing(int32_t, const std::shared_ptr<Thing> &) override { }
virtual void updateThing(const std::shared_ptr<Thing> &, uint16_t, uint32_t) override { }
virtual void replaceThing(uint32_t, const std::shared_ptr<Thing> &) override { }
Expand Down
2 changes: 1 addition & 1 deletion src/items/items_classification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ class ItemClassification final {
}

uint8_t id {};
std::map<uint8_t, TierInfo> tiers{};
std::map<uint8_t, TierInfo> tiers {};
};
2 changes: 1 addition & 1 deletion src/items/weapons/weapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class WeaponWand : public Weapon {
void configureWeapon(const ItemType &it) override;

int32_t getWeaponDamage(const std::shared_ptr<Player> &player, const std::shared_ptr<Creature> &target, const std::shared_ptr<Item> &item, bool maxDamage = false) const override;
int32_t getElementDamage(const std::shared_ptr<Player> &, const std::shared_ptr<Creature>&, const std::shared_ptr<Item>&) const override {
int32_t getElementDamage(const std::shared_ptr<Player> &, const std::shared_ptr<Creature> &, const std::shared_ptr<Item> &) const override {
return 0;
}
CombatType_t getElementType() const override {
Expand Down
2 changes: 1 addition & 1 deletion src/lua/creature/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ void Events::eventPlayerOnLookInBattleList(const std::shared_ptr<Player> &player
scriptInterface.callVoidFunction(3);
}

void Events::eventPlayerOnLookInTrade(const std::shared_ptr<Player> &player, const std::shared_ptr<Player> &partner, const std::shared_ptr<Item> &item, int32_t lookDistance) {
void Events::eventPlayerOnLookInTrade(const std::shared_ptr<Player> &player, const std::shared_ptr<Player> &partner, const std::shared_ptr<Item> &item, int32_t lookDistance) {
// Player:onLookInTrade(partner, item, distance) or Player.onLookInTrade(self, partner, item, distance)
if (info.playerOnLookInTrade == -1) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/lua/functions/core/game/global_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ int GlobalFunctions::luaAddEvent(lua_State* L) {

LuaData_t type = getNumber<LuaData_t>(L, -1);
if (type != LuaData_t::Unknown && type <= LuaData_t::Npc) {
indexes.emplace_back( i, type );
indexes.emplace_back(i, type);
}
lua_pop(globalState, 2);
}
Expand Down
4 changes: 2 additions & 2 deletions src/server/network/message/networkmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ void NetworkMessage::addBytes(const char* bytes, size_t size) {
}

void NetworkMessage::addPaddingBytes(size_t n) {
#define canAdd(size) ((size + info.position) < NETWORKMESSAGE_MAXSIZE)
#define canAdd(size) ((size + info.position) < NETWORKMESSAGE_MAXSIZE)
if (!canAdd(n)) {
return;
}
#undef canAdd
#undef canAdd

memset(buffer + info.position, 0x33, n);
info.length += n;
Expand Down

0 comments on commit fe4113d

Please sign in to comment.