[CF-Devel] Path: party gsay improvment
crossfire-devel at archives.real-time.com
crossfire-devel at archives.real-time.com
Sun Jun 6 08:45:44 CDT 2004
I suppose there is a bug in this patch:
>
@@ -156,7 +156,7 @@
>
int no=op->contr->party_number;
>
for(pl=first_player;pl!=NULL;pl=pl->next)
>
if(pl->ob->contr->party_number==no && pl->ob!=op)
>
- new_draw_info(NDI_UNIQUE, NDI_WHITE, pl->ob, msg);
>
+ new_draw_info_format(NDI_WHITE, 0, pl->ob, msg);
>
}
>
>
int command_gsay(object *op, char *params)
It should be
+ new_draw_info_format(NDI_WHITE, 0, pl->ob, "%s", msg);
^^^^
to prevent problems with messages that contain '%' characters.
_______________________________________________
crossfire-devel mailing list
crossfire-devel at lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/crossfire-devel
More information about the crossfire
mailing list