[CF-Devel] Re: [Crossfire-cvs] CVS commit: crossfire
crossfire-devel at archives.real-time.com
crossfire-devel at archives.real-time.com
Tue Jan 4 14:57:19 CST 2005
Salathar wrote:
>
There probably was or still is a reson for pl != NULL checks, maybe
>
the code should be something like:
>
>
if (pl!=NULL && draw_exit) {
>
if !(QUERY_FLAG(pl->ob,FLAG_WIZ) && pl->ob->contr->hidden)
>
new_draw_info(NDI_UNIQUE | NDI_ALL | NDI_DK_ORANGE, 5,
>
NULL, buf);
>
}
I'd rather merge this statement into the previous if(pl!=NULL) block:
if (pl!=NULL) {
[...]
if (draw_exit) {
if (!QUERY_FLAG(pl->ob, FLAG_WIZ) || !pl->ob->contr->hidden) {
new_draw_info(NDI_UNIQUE|NDI_ALL|NDI_DK_ORANGE, 5, NULL, buf);
}
}
}
_______________________________________________
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