From 41d9ca028de0740fd23a3dabaece8d1fd1bf93c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jun 2015 17:42:48 +0300 Subject: Convert BattleGroundType enum into strong typed enum. --- src/net/eathena/battlegroundhandler.cpp | 2 +- src/net/eathena/battlegroundhandler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index dd1f6bfe9..3a59b495e 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -151,7 +151,7 @@ void BattleGroundHandler::processBattleJoined(Net::MessageIn &msg) msg.readInt32("position"); } -void BattleGroundHandler::registerBg(const BattleGroundType::Type &type, +void BattleGroundHandler::registerBg(const BattleGroundTypeT &type, const std::string &name) const { createOutPacket(CMSG_BATTLE_REGISTER); diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index 233f99e76..3490331c7 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -39,7 +39,7 @@ class BattleGroundHandler final : public MessageHandler, void handleMessage(Net::MessageIn &msg) override final; - void registerBg(const BattleGroundType::Type &type, + void registerBg(const BattleGroundTypeT &type, const std::string &name) const override final; void rekoveRequest(const std::string &name) const override final; -- cgit v1.2.3-70-g09d2