player.cpp: In member function ‘int32_t Player::getWeaponSkill(const Item*) const’:
player.cpp:400:60: warning: left operand of comma operator has no effect [-Wunused-value]
return getSkill(SKILL_SWORD, SKILL_LEVEL) && (SKILL_AXE,SKILL_LEVEL);
^~~~~~~~~~~
player.cpp:406:60: warning: left operand of comma operator has no effect [-Wunused-value]
return getSkill(SKILL_AXE, SKILL_LEVEL) && (SKILL_SWORD,SKILL_LEVEL);
^~~~~~~~~~~
player.cpp:409:60: warning: left operand of comma operator has no effect [-Wunused-value]
return getSkill(SKILL_AXE, SKILL_LEVEL) && (SKILL_SWORD,SKILL_LEVEL);
^~~~~~~~~~~
player.cpp: In member function ‘virtual void Player::drainHealth(Creature*, CombatType_t, int64_t)’:
player.cpp:1870:143: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
s.", damage, (damage != 1 ? "s" : ""), attacker->getNameDescription().c_str());
^
player.cpp:1872:80: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
sprintf(buffer, "You lose %lld hitpoint%s.", damage, (damage != 1 ? "s" : ""));
^
player.cpp: In member function ‘virtual void Player::drainMana(Creature*, CombatType_t, int64_t)’:
player.cpp:1883:111: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
na blocking an attack by %s.", damage, attacker->getNameDescription().c_str());
^
player.cpp:1885:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
sprintf(buffer, "You lose %d mana.", damage);
^
player.cpp: In member function ‘virtual void Player::onAttackedCreatureDrain(Creature*, int64_t)’:
player.cpp:3858:93: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
, "You deal %lld damage to %s.", points, target->getNameDescription().c_str());
^
player.cpp: In member function ‘virtual void Player::onSummonAttackedCreatureDrain(Creature*, Creature*, int64_t)’:
player.cpp:3867:124: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t {aka long int}’ [-Wformat=]
%s.", summon->getName().c_str(), points, target->getNameDescription().c_str());
^
player.cpp: In member function ‘ItemVector Player::getWeapons() const’:
player.cpp:345:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
if(item->getAmmoType() != AMMO_NONE)
^~
player.cpp:348:4: note: here
case WEAPON_SWORD:
^~~~
player.cpp: In member function ‘void Player::manageAccount(const string&)’:
player.cpp:4870:20: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations]
talkState[i] = false;
~~~~~~~~~~~~~^~~~~~~
player.cpp:4869:26: note: within this loop
for(int8_t i = 2; i <= 14; i++)
~~^~~~~