Привет, попробовал скомпилировать, но получил ошибку.
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_account.cpp.o
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:484:127: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
...if (me->IsWithinDistInMap(who, 50.0f) && !player->GetQuestRewardStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) && !player->GetQuestStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) == QUEST_STATUS_NONE)
^ ~~
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:484:127: note: add parentheses after the '!' to evaluate the comparison first
...(me->IsWithinDistInMap(who, 50.0f) && !player->GetQuestRewardStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) && !player->GetQuestStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:484:127: note: add parentheses around left hand side expression to silence this warning
...if (me->IsWithinDistInMap(who, 50.0f) && !player->GetQuestRewardStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) && !player->GetQuestStatus(QUEST_ENTER_THE_ILLIDARI_ASHTONGUE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:995:112: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (me->IsWithinDistInMap(who, 10.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^ ~~
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:995:112: note: add parentheses after the '!' to evaluate the comparison first
if (me->IsWithinDistInMap(who, 10.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:995:112: note: add parentheses around left hand side expression to silence this warning
if (me->IsWithinDistInMap(who, 10.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1072:112: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (me->IsWithinDistInMap(who, 20.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^ ~~
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1072:112: note: add parentheses after the '!' to evaluate the comparison first
if (me->IsWithinDistInMap(who, 20.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1072:112: note: add parentheses around left hand side expression to silence this warning
if (me->IsWithinDistInMap(who, 20.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1149:112: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (me->IsWithinDistInMap(who, 35.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^ ~~
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1149:112: note: add parentheses after the '!' to evaluate the comparison first
if (me->IsWithinDistInMap(who, 35.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1149:112: note: add parentheses around left hand side expression to silence this warning
if (me->IsWithinDistInMap(who, 35.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1226:112: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
if (me->IsWithinDistInMap(who, 25.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^ ~~
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1226:112: note: add parentheses after the '!' to evaluate the comparison first
if (me->IsWithinDistInMap(who, 25.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
/root/ProjectBattleForAzeroth/src/server/scripts/BrokenIsles/zone_mardum.cpp:1226:112: note: add parentheses around left hand side expression to silence this warning
if (me->IsWithinDistInMap(who, 25.0f) && !player->GetQuestRewardStatus(QUEST_SET_THEM_FREE) && !player->GetQuestStatus(QUEST_SET_THEM_FREE) == QUEST_STATUS_NONE)
^
( )
[ 22%] Building CXX object src/server/bnetserver/CMakeFiles/bnetserver.dir/Services/ConnectionService.cpp.o[ 37%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/Deadmines/deadmines.cpp.o
[ 37%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/Deadmines/instance_deadmines.cpp.o
[ 37%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/Gilneas/chapter1.cpp.o
/root/ProjectBattleForAzeroth/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp:316:69: error: taking the address of a temporary object of type 'Position' [-Waddress-of-temporary]
if (me->IsAIEnabled && me->IsInDist(&player->GetPosition(), 100.0f))
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
src/server/scripts/CMakeFiles/scripts.dir/build.make:3402: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/Gilneas/chapter1.cpp.o' failed
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/EasternKingdoms/Gilneas/chapter1.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 37%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGPlayerData.cpp.o
CMakeFiles/Makefile2:1547: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/all' failed
make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 37%] Building CXX object src/server/game/CMakeFiles/game.dir/DungeonFinding/LFGQueue.cpp.o[ 57%] Building CXX object src/server/game/CMakeFiles/game.dir/World/World.cpp.o
[ 57%] Linking CXX static library libgame.a
[ 57%] Built target game
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Last edited by TheRock (2019-01-02 07:03:13)