summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-24 21:16:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-24 21:16:44 +0300
commit4749c8977e2e803692bd844b5400f8d72cbaf17f (patch)
treeb60511d5c852566722590a7b0501a110ce0c2e99 /src/net/tmwa
parent3a883849147535b449bf4eb24563da4db8a1ef9c (diff)
downloadplus-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.gz
plus-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.bz2
plus-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.xz
plus-4749c8977e2e803692bd844b5400f8d72cbaf17f.zip
Add strong typed bool type Online.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/guildhandler.cpp2
-rw-r--r--src/net/tmwa/guildmanager.cpp4
-rw-r--r--src/net/tmwa/partyhandler.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 29eeaaaa6..f58f873a4 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -389,7 +389,7 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg)
{
m->setOnline(online);
if (guildTab)
- guildTab->showOnline(m->getName(), online);
+ guildTab->showOnline(m->getName(), fromBool(online, Online));
if (socialWindow)
socialWindow->updateGuildCounter();
}
diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp
index 0e7b7a43a..8bc3c2a18 100644
--- a/src/net/tmwa/guildmanager.cpp
+++ b/src/net/tmwa/guildmanager.cpp
@@ -290,7 +290,7 @@ bool GuildManager::process(std::string msg)
guild->sort();
mRequest = false;
if (mTab)
- mTab->showOnline(msg, false);
+ mTab->showOnline(msg, Online_false);
if (socialWindow)
socialWindow->updateGuildCounter();
return true;
@@ -310,7 +310,7 @@ bool GuildManager::process(std::string msg)
guild->sort();
mRequest = false;
if (mTab)
- mTab->showOnline(msg, true);
+ mTab->showOnline(msg, Online_true);
if (socialWindow)
socialWindow->updateGuildCounter();
return true;
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp
index 6d9e448f0..6f8787be4 100644
--- a/src/net/tmwa/partyhandler.cpp
+++ b/src/net/tmwa/partyhandler.cpp
@@ -294,7 +294,7 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg)
|| (onlineNames.find(nick) != onlineNames.end()
&& !online)))
{
- partyTab->showOnline(nick, online);
+ partyTab->showOnline(nick, fromBool(online, Online));
}
member->setLeader(leader);
@@ -417,7 +417,7 @@ void PartyHandler::processPartyMove(Net::MessageIn &msg)
m->setY(msg.readInt16("y"));
const bool online = msg.readUInt8("online") != 0;
if (m->getOnline() != online)
- partyTab->showOnline(m->getName(), online);
+ partyTab->showOnline(m->getName(), fromBool(online, Online));
m->setOnline(online);
msg.readString(24, "party");
msg.readString(24, "nick");