From c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 23:24:05 +0300 Subject: Convert BeingAction enum into strong typed enum. --- src/net/eathena/playerhandler.cpp | 2 +- src/net/eathena/playerhandler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index f2627c605..83cbec9ba 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -277,7 +277,7 @@ void PlayerHandler::setDestination(const int x, const int y, static_cast(direction), "destination"); } -void PlayerHandler::changeAction(const BeingAction::Action &action) const +void PlayerHandler::changeAction(const BeingActionT &action) const { unsigned char type; switch (action) diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 49572f0b1..5207b4ce7 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -51,7 +51,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void setDirection(const unsigned char direction) const override final; void setDestination(const int x, const int y, const int direction) const override final; - void changeAction(const BeingAction::Action &action) + void changeAction(const BeingActionT &action) const override final; void updateStatus(const uint8_t status) const override final; -- cgit v1.2.3-70-g09d2