azerothcore / mod-anticheat

Port of PassiveAnticheat to Azerothcore
http://azerothcore.org/
MIT License
33 stars 50 forks source link

Compile faild #48

Closed xclid closed 2 years ago

xclid commented 2 years ago

https://github.com/azerothcore/azerothcore-wotlk/commit/b0b9fece998275577aee221304c5379084833e66

https://github.com/azerothcore/mod-anticheat/commit/4365d3d1aa8ddecbf406b967362b338128aad781

/root/azerothcore/modules/mod-anticheat/src/AnticheatMgr.cpp:226:22: fatal error: use of undeclared identifier 'playerPos'
        float deltaZ = fabs(playerPos.GetPositionZ() - movementInfo.pos.GetPositionZ());
                            ^
1 error generated.
make[2]: *** [modules/CMakeFiles/modules.dir/build.make:108: modules/CMakeFiles/modules.dir/mod-anticheat/src/AnticheatMgr.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1235: modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Winfidonarleyan commented 2 years ago

https://github.com/azerothcore/mod-anticheat/commit/b1eef65f6bc0c911bff24b91a7a42ef9efff1a4a