I did this modification
on windows compile normally and work, on linux this error
if i insert
compile on linux but dont work
TFS 1.2 10.99
C++:
const Tile* playerTile = player->getTile();
if (!playerTile || !playerTile->hasFlag(TILESTATE_PROTECTIONZONE) && !playerTile->hasFlag(TILESTATE_NOPVPZONE)) {
return false;
}
Code:
In member function ‘bool Player::canWalkthrough(const Creature*) const’:
/home/servidor/tfs/src/player.cpp:713:68: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
if (!playerTile || !playerTile->hasFlag(TILESTATE_PROTECTIONZONE) && !playerTile->hasFlag(TILESTATE_NOPVPZONE)) {
if i insert
C++:
playerTile->hasFlag(TILESTATE_PROTECTIONZONE) || !playerTile->hasFlag(TILESTATE_NOPVPZONE)) {
TFS 1.2 10.99