summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/eathena
parent3a883849147535b449bf4eb24563da4db8a1ef9c (diff)
downloadmv-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.gz
mv-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.bz2
mv-4749c8977e2e803692bd844b5400f8d72cbaf17f.tar.xz
mv-4749c8977e2e803692bd844b5400f8d72cbaf17f.zip
Add strong typed bool type Online.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/guildhandler.cpp2
-rw-r--r--src/net/eathena/partyhandler.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index cd4078666..1a6c29b80 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -412,7 +412,7 @@ void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg)
if (online)
m->setGender(gender);
if (guildTab)
- guildTab->showOnline(m->getName(), online);
+ guildTab->showOnline(m->getName(), fromBool(online, Online));
if (socialWindow)
socialWindow->updateGuildCounter();
}
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 87b30eb52..5f859d12e 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -246,7 +246,7 @@ void PartyHandler::processPartyMemberInfo(Net::MessageIn &msg)
if (member)
{
if (partyTab && member->getOnline() != online)
- partyTab->showOnline(nick, online);
+ partyTab->showOnline(nick, fromBool(online, Online));
member->setLeader(leader);
member->setOnline(online);
member->setMap(map);
@@ -349,7 +349,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);