mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-21 16:36:09 +01:00
Just some cosmetic code cleanup
This commit is contained in:
parent
12c506c89a
commit
58ec913b46
12 changed files with 230 additions and 254 deletions
|
|
@ -334,7 +334,7 @@ void ProtocolDestroy( protocol_t *apProtocol )
|
|||
|
||||
for ( i = eMSDP_NONE+1; i < eMSDP_MAX; ++i )
|
||||
{
|
||||
if (apProtocol->pVariables[i]->pValueString)
|
||||
if (apProtocol->pVariables[i]->pValueString)
|
||||
free(apProtocol->pVariables[i]->pValueString);
|
||||
free(apProtocol->pVariables[i]);
|
||||
}
|
||||
|
|
@ -1402,7 +1402,7 @@ const char *ColourRGB( descriptor_t *apDescriptor, const char *apRGB )
|
|||
bool charHasColor = TRUE;
|
||||
|
||||
if (apDescriptor->character && !clr(apDescriptor->character, C_CMP))
|
||||
charHasColor = FALSE;
|
||||
charHasColor = FALSE;
|
||||
|
||||
if ( pProtocol && pProtocol->pVariables[eMSDP_ANSI_COLORS]->ValueInt && charHasColor )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue