ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/info.C
(Generate patch)

Comparing deliantra/server/socket/info.C (file contents):
Revision 1.23 by root, Thu Dec 21 23:37:06 2006 UTC vs.
Revision 1.24 by root, Mon Dec 25 11:25:50 2006 UTC

187{ 187{
188 if (flags & NDI_ALL) 188 if (flags & NDI_ALL)
189 { 189 {
190 player *tmppl; 190 player *tmppl;
191 191
192 for (tmppl = first_player; tmppl != NULL; tmppl = tmppl->next) 192 for_all_players (pl)
193 new_draw_info ((flags & ~NDI_ALL), pri, tmppl->ob, buf); 193 new_draw_info ((flags & ~NDI_ALL), pri, tmppl->ob, buf);
194 194
195 return; 195 return;
196 } 196 }
197 197
309void 309void
310new_info_map_except (int color, maptile * map, object *op, const char *str) 310new_info_map_except (int color, maptile * map, object *op, const char *str)
311{ 311{
312 player *pl; 312 player *pl;
313 313
314 for (pl = first_player; pl != NULL; pl = pl->next) 314 for_all_players (pl)
315 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op) 315 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op)
316 { 316 {
317 new_draw_info (color, 0, pl->ob, str); 317 new_draw_info (color, 0, pl->ob, str);
318 } 318 }
319} 319}
325void 325void
326new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) 326new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str)
327{ 327{
328 player *pl; 328 player *pl;
329 329
330 for (pl = first_player; pl != NULL; pl = pl->next) 330 for_all_players (pl)
331 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2) 331 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2)
332 { 332 {
333 new_draw_info (color, 0, pl->ob, str); 333 new_draw_info (color, 0, pl->ob, str);
334 } 334 }
335} 335}
341void 341void
342new_info_map (int color, maptile * map, const char *str) 342new_info_map (int color, maptile * map, const char *str)
343{ 343{
344 player *pl; 344 player *pl;
345 345
346 for (pl = first_player; pl != NULL; pl = pl->next) 346 for_all_players (pl)
347 if (pl->ob != NULL && pl->ob->map == map) 347 if (pl->ob != NULL && pl->ob->map == map)
348 { 348 {
349 new_draw_info (color, 0, pl->ob, str); 349 new_draw_info (color, 0, pl->ob, str);
350 } 350 }
351} 351}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines