summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/net
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/tradehandler.cpp8
-rw-r--r--src/net/eathena/generalhandler.cpp2
-rw-r--r--src/net/tmwa/generalhandler.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp
index 9c6f8f387..a0c84c24e 100644
--- a/src/net/ea/tradehandler.cpp
+++ b/src/net/ea/tradehandler.cpp
@@ -86,7 +86,7 @@ void TradeHandler::processTradeResponseContinue(const uint8_t type)
tradeWindow->setCaption(strprintf(_("Trade: You and %s"),
tradePartnerName.c_str()));
tradeWindow->initTrade(tradePartnerName);
- tradeWindow->setVisible(true);
+ tradeWindow->setVisible(Visible_true);
}
break;
case 4: // Trade cancelled
@@ -100,7 +100,7 @@ void TradeHandler::processTradeResponseContinue(const uint8_t type)
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
// tradeWindow->clear();
}
PlayerInfo::setTrading(Trading_false);
@@ -132,7 +132,7 @@ void TradeHandler::processTradeCancel(Net::MessageIn &msg A_UNUSED)
NotifyManager::notify(NotifyTypes::TRADE_CANCELLED);
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
tradeWindow->reset();
}
PlayerInfo::setTrading(Trading_false);
@@ -143,7 +143,7 @@ void TradeHandler::processTradeComplete(Net::MessageIn &msg A_UNUSED)
NotifyManager::notify(NotifyTypes::TRADE_COMPLETE);
if (tradeWindow)
{
- tradeWindow->setVisible(false);
+ tradeWindow->setVisible(Visible_false);
tradeWindow->reset();
}
PlayerInfo::setTrading(Trading_false);
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 3c442af82..704f7787d 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -380,7 +380,7 @@ void GeneralHandler::clearHandlers()
void GeneralHandler::gameStarted() const
{
if (inventoryWindow)
- inventoryWindow->setSplitAllowed(false);
+ inventoryWindow->setSplitAllowed(Visible_false);
if (skillDialog)
skillDialog->loadSkills();
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 548ee7b8f..78052a5f8 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -331,7 +331,7 @@ void GeneralHandler::clearHandlers()
void GeneralHandler::gameStarted() const
{
if (inventoryWindow)
- inventoryWindow->setSplitAllowed(false);
+ inventoryWindow->setSplitAllowed(Visible_false);
if (skillDialog)
skillDialog->loadSkills();