forcing to bool conversions made explicit

This commit is contained in:
Arthur Dene Ice
2014-05-10 10:15:47 -07:00
parent 5c35d47213
commit f5d46d3b31
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5242,7 +5242,7 @@ void Client::Handle_OP_LFGCommand(const EQApplicationPacket *app)
} }
LFGFromLevel = lfg->FromLevel; LFGFromLevel = lfg->FromLevel;
LFGToLevel = lfg->ToLevel; LFGToLevel = lfg->ToLevel;
LFGMatchFilter = lfg->MatchFilter; LFGMatchFilter = lfg->MatchFilter != 0;
strcpy(LFGComments, lfg->Comments); strcpy(LFGComments, lfg->Comments);
break; break;
default: default:
+1 -1
View File
@@ -1861,7 +1861,7 @@ Corpse* ZoneDatabase::LoadPlayerCorpse(uint32 player_corpse_id) {
lengths = mysql_fetch_lengths(result); lengths = mysql_fetch_lengths(result);
if(row && lengths) if(row && lengths)
{ {
NewCorpse = Corpse::LoadFromDBData(atoi(row[0]), atoi(row[1]), row[2], (uchar*) row[7], lengths[7], atof(row[3]), atoi(row[4]), atoi(row[5]), atoi(row[6]), row[8],atoi(row[9])==1, atoi(row[10])); NewCorpse = Corpse::LoadFromDBData(atoi(row[0]), atoi(row[1]), row[2], (uchar*) row[7], lengths[7], atof(row[3]), atoi(row[4]), atoi(row[5]), atoi(row[6]), row[8],atoi(row[9])==1, atoi(row[10]) != 0);
entity_list.AddCorpse(NewCorpse); entity_list.AddCorpse(NewCorpse);
} }
mysql_free_result(result); mysql_free_result(result);
+1 -1
View File
@@ -1963,7 +1963,7 @@ void NPC::ModifyNPCStat(const char *identifier, const char *newValue)
if(id == "see_hide") if(id == "see_hide")
{ {
see_hide = atoi(val.c_str()); see_hide = atoi(val.c_str()) != 0;
return; return;
} }