diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-10 20:29:58 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-11 22:28:13 +0100 |
commit | 3c828c4c7448353858a80d1c60e47d125ed3d3e4 (patch) | |
tree | 1ba38fa3f7b0a4536c0a005ab3fbbde682a34d7f /src/game-server/being.cpp | |
parent | d65dfcfa04a622effcd4cebdfaa5e713ca7627d8 (diff) | |
download | manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.gz manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.bz2 manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.xz manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.zip |
Made the servers report their protocol version.
As the protocol version isn't something the maintainers should
set, I removed the net_clientVersion irrelevant option, replaced
by the corresponding define PROTOCOL_VERSION
in the manaserv_protocol.h file.
A corresponding change in the client will be made.
N.B.: Now, the Enet version is also reported in the log.
Reviewed-by: Jaxad.
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r-- | src/game-server/being.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index 567e19a3..f707198b 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -266,7 +266,7 @@ void Being::updateDirection(const Point ¤tPos, const Point &destPos) { // Compute tan of the angle if ((currentPos.y - destPos.y) / (currentPos.x - destPos.x) < 1) - // The angle is less than 45°, we look to the right + // The angle is less than 45°, we look to the left setDirection(LEFT); else setDirection(UP); @@ -276,7 +276,7 @@ void Being::updateDirection(const Point ¤tPos, const Point &destPos) { // Compute tan of the angle if ((destPos.y - currentPos.y) / (currentPos.x - destPos.x) < 1) - // The angle is less than 45°, we look to the right + // The angle is less than 45°, we look to the left setDirection(LEFT); else setDirection(DOWN); |