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.31 by root, Tue Jan 9 21:32:43 2007 UTC vs.
Revision 1.34 by pippijn, Thu Mar 1 12:28:17 2007 UTC

1/* 1/*
2 CrossFire, A Multiplayer game for X-windows 2 * CrossFire, A Multiplayer game for X-windows
3 3 *
4 Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team 4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
5 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 5 * Copyright (C) 2002 Mark Wedel & Crossfire Development Team
6 Copyright (C) 1992 Frank Tore Johansen 6 * Copyright (C) 1992 Frank Tore Johansen
7 7 *
8 This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or 10 * the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version. 11 * (at your option) any later version.
12 12 *
13 This program is distributed in the hope that it will be useful, 13 * This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details. 16 * GNU General Public License for more details.
17 17 *
18 You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 21 *
22 The authors can be reached via e-mail at <crossfire@schmorp.de> 22 * The authors can be reached via e-mail at <crossfire@schmorp.de>
23*/ 23 */
24 24
25/** 25/**
26 * \file 26 * \file
27 * Basic client output functions. 27 * Basic client output functions.
28 * 28 *
293 */ 293 */
294 294
295void 295void
296new_info_map_except (int color, maptile * map, object *op, const char *str) 296new_info_map_except (int color, maptile * map, object *op, const char *str)
297{ 297{
298 player *pl;
299
300 for_all_players (pl) 298 for_all_players (pl)
301 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op) 299 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op)
302 new_draw_info (color, 0, pl->ob, str); 300 new_draw_info (color, 0, pl->ob, str);
303} 301}
304 302
307 */ 305 */
308 306
309void 307void
310new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) 308new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str)
311{ 309{
312 player *pl;
313
314 for_all_players (pl) 310 for_all_players (pl)
315 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2) 311 if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2)
316 new_draw_info (color, 0, pl->ob, str); 312 new_draw_info (color, 0, pl->ob, str);
317} 313}
318 314
321 */ 317 */
322 318
323void 319void
324new_info_map (int color, maptile * map, const char *str) 320new_info_map (int color, maptile * map, const char *str)
325{ 321{
326 player *pl;
327
328 for_all_players (pl) 322 for_all_players (pl)
329 if (pl->ob != NULL && pl->ob->map == map) 323 if (pl->ob != NULL && pl->ob->map == map)
330 new_draw_info (color, 0, pl->ob, str); 324 new_draw_info (color, 0, pl->ob, str);
331} 325}
332 326
443magic_mapping_mark_recursive (object *pl, char *map_mark, int px, int py) 437magic_mapping_mark_recursive (object *pl, char *map_mark, int px, int py)
444{ 438{
445 int x, y, dx, dy, mflags; 439 int x, y, dx, dy, mflags;
446 sint16 nx, ny; 440 sint16 nx, ny;
447 maptile *mp; 441 maptile *mp;
448 New_Face *f; 442 facetile *f;
449 443
450 for (dx = -1; dx <= 1; dx++) 444 for (dx = -1; dx <= 1; dx++)
451 { 445 {
452 for (dy = -1; dy <= 1; dy++) 446 for (dy = -1; dy <= 1; dy++)
453 { 447 {
509magic_mapping_mark (object *pl, char *map_mark, int strength) 503magic_mapping_mark (object *pl, char *map_mark, int strength)
510{ 504{
511 int x, y, mflags; 505 int x, y, mflags;
512 sint16 nx, ny; 506 sint16 nx, ny;
513 maptile *mp; 507 maptile *mp;
514 New_Face *f; 508 facetile *f;
515 509
516 for (x = -strength; x < strength; x++) 510 for (x = -strength; x < strength; x++)
517 { 511 {
518 for (y = -strength; y < strength; y++) 512 for (y = -strength; y < strength; y++)
519 { 513 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines