conversion to bool explicit

This commit is contained in:
Arthur Dene Ice 2014-05-07 20:14:22 -07:00
parent 90a518f4d6
commit 63681a09ab
2 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ void EQStream::ProcessPacket(EQProtocolPacket *p)
if (!Session)
Session=ntohl(Response->Session);
compressed=(Response->Format&FLAG_COMPRESSED);
encoded=(Response->Format&FLAG_ENCODED);
encoded=(Response->Format&FLAG_ENCODED) != 0;
_log(NET__NET_TRACE, _L "Received OP_SessionResponse: session %lu, maxlen %d, key %lu, compressed? %s, encoded? %s" __L, (unsigned long)Session, MaxLen, (unsigned long)Key, compressed?"yes":"no", encoded?"yes":"no");

View File

@ -835,7 +835,7 @@ bool BaseGuildManager::GetBankerFlag(uint32 CharID)
row = mysql_fetch_row(result);
bool IsBanker = atoi(row[0]);
bool IsBanker = atoi(row[0]) != 0;
mysql_free_result(result);
@ -877,7 +877,7 @@ bool BaseGuildManager::GetAltFlag(uint32 CharID)
row = mysql_fetch_row(result);
bool IsAlt = atoi(row[0]);
bool IsAlt = atoi(row[0]) != 0;
mysql_free_result(result);