diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:29:28 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:29:28 +0000 |
commit | 58771baadb7529b0b20ca85566ab2790ca5dcd90 (patch) | |
tree | 526b458712f46fc6b9cfdcffc98e0a625f656eb6 /src/localplayer.cpp | |
parent | 3ce08687bb879054f5fa93f456677246cb51afdd (diff) | |
download | mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.gz mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.bz2 mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.xz mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.zip |
Implemented communication of being action changes.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 1dd8bdf2..16d5b191 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -289,20 +289,16 @@ void LocalPlayer::toggleSit() return; mLastAction = tick_time; - char type; + Being::Action newAction; switch (mAction) { - case STAND: type = 2; break; - case SIT: type = 3; break; + case Being::STAND: newAction = Being::SIT; break; + case Being::SIT: newAction = Being::STAND; break; default: return; } - // XXX Convert for new server - /* - MessageOut outMsg(0x0089); - outMsg.writeLong(0); - outMsg.writeByte(type); - */ + setAction(newAction); + Net::GameServer::Player::changeAction(newAction); } void LocalPlayer::emote(Uint8 emotion) |