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.6 by root, Thu Sep 14 22:34:05 2006 UTC vs.
Revision 1.7 by root, Sat Sep 16 22:24:13 2006 UTC

349/** 349/**
350 * Writes to everyone on the map *except* op. This is useful for emotions. 350 * Writes to everyone on the map *except* op. This is useful for emotions.
351 */ 351 */
352 352
353void 353void
354new_info_map_except (int color, mapstruct *map, object *op, const char *str) 354new_info_map_except (int color, maptile *map, object *op, const char *str)
355{ 355{
356 player *pl; 356 player *pl;
357 357
358 for (pl = first_player; pl != NULL; pl = pl->next) 358 for (pl = first_player; pl != NULL; pl = pl->next)
359 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op) 359 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op)
365/** 365/**
366 * Writes to everyone on the map except op1 and op2 366 * Writes to everyone on the map except op1 and op2
367 */ 367 */
368 368
369void 369void
370new_info_map_except2 (int color, mapstruct *map, object *op1, object *op2, const char *str) 370new_info_map_except2 (int color, maptile *map, object *op1, object *op2, const char *str)
371{ 371{
372 player *pl; 372 player *pl;
373 373
374 for (pl = first_player; pl != NULL; pl = pl->next) 374 for (pl = first_player; pl != NULL; pl = pl->next)
375 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2) 375 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2)
381/** 381/**
382 * Writes to everyone on the specified map 382 * Writes to everyone on the specified map
383 */ 383 */
384 384
385void 385void
386new_info_map (int color, mapstruct *map, const char *str) 386new_info_map (int color, maptile *map, const char *str)
387{ 387{
388 player *pl; 388 player *pl;
389 389
390 for (pl = first_player; pl != NULL; pl = pl->next) 390 for (pl = first_player; pl != NULL; pl = pl->next)
391 if (pl->ob != NULL && pl->ob->map == map) 391 if (pl->ob != NULL && pl->ob->map == map)
506static void 506static void
507magic_mapping_mark_recursive (object *pl, char *map_mark, int px, int py) 507magic_mapping_mark_recursive (object *pl, char *map_mark, int px, int py)
508{ 508{
509 int x, y, dx, dy, mflags; 509 int x, y, dx, dy, mflags;
510 sint16 nx, ny; 510 sint16 nx, ny;
511 mapstruct *mp; 511 maptile *mp;
512 New_Face *f; 512 New_Face *f;
513 513
514 for (dx = -1; dx <= 1; dx++) 514 for (dx = -1; dx <= 1; dx++)
515 { 515 {
516 for (dy = -1; dy <= 1; dy++) 516 for (dy = -1; dy <= 1; dy++)
572void 572void
573magic_mapping_mark (object *pl, char *map_mark, int strength) 573magic_mapping_mark (object *pl, char *map_mark, int strength)
574{ 574{
575 int x, y, mflags; 575 int x, y, mflags;
576 sint16 nx, ny; 576 sint16 nx, ny;
577 mapstruct *mp; 577 maptile *mp;
578 New_Face *f; 578 New_Face *f;
579 579
580 for (x = -strength; x < strength; x++) 580 for (x = -strength; x < strength; x++)
581 { 581 {
582 for (y = -strength; y < strength; y++) 582 for (y = -strength; y < strength; y++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines