[Styling] Some minor styling fixes

This commit is contained in:
Antz 2021-11-12 17:36:26 +00:00 committed by Antz
parent caa2d98069
commit 0b30838d20
No known key found for this signature in database
GPG Key ID: 0DF907270598C85F
3 changed files with 24 additions and 19 deletions

View File

@ -364,6 +364,7 @@ enum eConfigBoolValues
CONFIG_BOOL_PLAYERBOT_COLLECT_OBJECTS, CONFIG_BOOL_PLAYERBOT_COLLECT_OBJECTS,
CONFIG_BOOL_PLAYERBOT_SELL_TRASH, CONFIG_BOOL_PLAYERBOT_SELL_TRASH,
#endif #endif
// Warden
CONFIG_BOOL_WARDEN_WIN_ENABLED, CONFIG_BOOL_WARDEN_WIN_ENABLED,
CONFIG_BOOL_WARDEN_OSX_ENABLED, CONFIG_BOOL_WARDEN_OSX_ENABLED,
CONFIG_BOOL_GM_TICKET_OFFLINE_CLOSING, CONFIG_BOOL_GM_TICKET_OFFLINE_CLOSING,

View File

@ -384,10 +384,12 @@ namespace VMAP
result = false; result = false;
} }
if (count) if (count)
{
if (result && fwrite(&triangles[0], sizeof(MeshTriangle), count, wf) != count) if (result && fwrite(&triangles[0], sizeof(MeshTriangle), count, wf) != count)
{ {
result = false; result = false;
} }
}
// write mesh BIH // write mesh BIH
if (result && fwrite("MBIH", 1, 4, wf) != 4) if (result && fwrite("MBIH", 1, 4, wf) != 4)
@ -410,10 +412,12 @@ namespace VMAP
result = false; result = false;
} }
if (chunkSize) if (chunkSize)
{
if (result) if (result)
{ {
result = iLiquid->WriteToFile(wf); result = iLiquid->WriteToFile(wf);
} }
}
return result; return result;
} }