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.48 by root, Tue May 6 16:44:54 2008 UTC vs.
Revision 1.49 by root, Tue May 6 16:46:02 2008 UTC

263 263
264void 264void
265new_info_map_except (int color, maptile * map, object *op, const char *str) 265new_info_map_except (int color, maptile * map, object *op, const char *str)
266{ 266{
267 for_all_players (pl) 267 for_all_players (pl)
268 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op) 268 if (pl->ob->map == map && pl->ob != op)
269 new_draw_info (color, 0, pl->ob, str); 269 new_draw_info (color, 0, pl->ob, str);
270} 270}
271 271
272/** 272/**
273 * Writes to everyone on the map except op1 and op2 273 * Writes to everyone on the map except op1 and op2
274 */ 274 */
275void 275void
276new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) 276new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str)
277{ 277{
278 for_all_players (pl) 278 for_all_players (pl)
279 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2) 279 if (pl->ob->map == map && pl->ob != op1 && pl->ob != op2)
280 new_draw_info (color, 0, pl->ob, str); 280 new_draw_info (color, 0, pl->ob, str);
281} 281}
282 282
283/** 283/**
284 * Writes to everyone on the specified map 284 * Writes to everyone on the specified map
285 */ 285 */
286void 286void
287new_info_map (int color, maptile * map, const char *str) 287new_info_map (int color, maptile * map, const char *str)
288{ 288{
289 for_all_players (pl) 289 for_all_players (pl)
290 if (pl->ob != NULL && pl->ob->map == map) 290 if (pl->ob->map == map)
291 new_draw_info (color, 0, pl->ob, str); 291 new_draw_info (color, 0, pl->ob, str);
292} 292}
293 293
294/** 294/**
295 * Sets player title. 295 * Sets player title.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines