mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Addressed compiler warnings:
address of array '...' will always evaluate to 'true' [-Wpointer-bool-conversion]
This commit is contained in:
parent
3782fc221c
commit
d0e08785f5
1 changed files with 4 additions and 7 deletions
|
@ -196,13 +196,10 @@ void convert(char *filename)
|
|||
}
|
||||
|
||||
/* char_file_u */
|
||||
if (player.name)
|
||||
fprintf(outfile, "Name: %s\n", player.name);
|
||||
if (player.pwd)
|
||||
fprintf(outfile, "Pass: %s\n", player.pwd);
|
||||
if (player.title)
|
||||
fprintf(outfile, "Titl: %s\n", player.title);
|
||||
if (player.description && *player.description)
|
||||
fprintf(outfile, "Name: %s\n", player.name);
|
||||
fprintf(outfile, "Pass: %s\n", player.pwd);
|
||||
fprintf(outfile, "Titl: %s\n", player.title);
|
||||
if (*player.description)
|
||||
fprintf(outfile, "Desc:\n%s~\n", player.description);
|
||||
if (player.sex != PFDEF_SEX)
|
||||
fprintf(outfile, "Sex : %d\n", (int)player.sex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue