mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 04:42:28 +00:00
conversion to bool explicit
This commit is contained in:
parent
90a518f4d6
commit
63681a09ab
@ -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");
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user