summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:29:28 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:29:28 +0000
commit58771baadb7529b0b20ca85566ab2790ca5dcd90 (patch)
tree526b458712f46fc6b9cfdcffc98e0a625f656eb6 /src/localplayer.cpp
parent3ce08687bb879054f5fa93f456677246cb51afdd (diff)
downloadmana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.gz
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.bz2
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.xz
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.zip
Implemented communication of being action changes.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp14
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)