Skip to content

Commit 2f8797a

Browse files
Code format - (Clang-format)
1 parent 2d967b0 commit 2f8797a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/creatures/combat/spells.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ TalkActionResult_t Spells::playerSaySpell(const std::shared_ptr<Player> &player,
101101
if (instantSpell->playerCastInstant(player, param)) {
102102
if (!player->checkSpellNameInsteadOfWords()) {
103103
words = instantSpell->getWords();
104-
}
105-
else {
104+
} else {
106105
words = instantSpell->getName();
107106
}
108107

src/creatures/creature.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ class Creature : virtual public Thing, public SharedObject {
123123

124124
virtual CreatureType_t getType() const = 0;
125125

126-
bool isPlayer() const {
127-
return getType() == CreatureType_t::CREATURETYPE_PLAYER;
128-
}
126+
bool isPlayer() const {
127+
return getType() == CreatureType_t::CREATURETYPE_PLAYER;
128+
}
129129

130-
bool isMonster() const {
131-
return getType() == CreatureType_t::CREATURETYPE_MONSTER;
132-
}
130+
bool isMonster() const {
131+
return getType() == CreatureType_t::CREATURETYPE_MONSTER;
132+
}
133133

134134
virtual void setID() = 0;
135135
void setRemoved() {

0 commit comments

Comments
 (0)