Closed jrgryph closed 11 years ago
Hi,
RE: https://github.com/cmangos/mangos-wotlk/commit/8a3ba337560191a18a8b7ae2859136e5b7f2c246
Thanks for the feedback ;) Yes the core has changed the number of parameters that Unit::GetCombatDistance(const Unit*, bool) requires. The second boolean parameter specifies whether the range pertains to melee or not. I will update our code shortly to resolve this change.
Thanks
Hey blueboy,
I get this when compiling:
[ 90%] Building CXX object src/game/CMakeFiles/game.dir/playerbot/PlayerbotAI.cpp.o /root/portal/src/game/playerbot/PlayerbotAI.cpp: In member function âvoid PlayerbotAI::DoCombatMovement()â: /root/portal/src/game/playerbot/PlayerbotAI.cpp:3066:63: error: no matching function for call to âPlayer::GetCombatDistance(Unit&)â /root/portal/src/game/playerbot/PlayerbotAI.cpp:3066:63: note: candidate is: /root/portal/src/game/playerbot/../Unit.h:1151:15: note: float Unit::GetCombatDistance(const Unit, bool) const /root/portal/src/game/playerbot/../Unit.h:1151:15: note: candidate expects 2 arguments, 1 provided
Playerbot commit 3e59649cc9f546f2da386a1991422c558af1d997 cmangos commit c7309f53ad477288ba18cc93726416dd7f03d793 This is on ubuntu 12.04 64bit