--- deliantra/server/socket/info.C 2007/07/01 05:00:20 1.46 +++ deliantra/server/socket/info.C 2008/05/06 16:55:26 1.50 @@ -1,11 +1,11 @@ /* - * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. + * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team + * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team * Copyright (©) 1992,2007 Frank Tore Johansen * - * Crossfire TRT is free software: you can redistribute it and/or modify + * Deliantra is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * The authors can be reached via e-mail to + * The authors can be reached via e-mail to */ /** @@ -265,7 +265,7 @@ new_info_map_except (int color, maptile * map, object *op, const char *str) { for_all_players (pl) - if (pl->ob != NULL && pl->ob->map == map && pl->ob != op) + if (pl->ob->map == map && pl->ob != op) new_draw_info (color, 0, pl->ob, str); } @@ -276,7 +276,7 @@ new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) { for_all_players (pl) - if (pl->ob != NULL && pl->ob->map == map && pl->ob != op1 && pl->ob != op2) + if (pl->ob->map == map && pl->ob != op1 && pl->ob != op2) new_draw_info (color, 0, pl->ob, str); } @@ -287,7 +287,7 @@ new_info_map (int color, maptile * map, const char *str) { for_all_players (pl) - if (pl->ob != NULL && pl->ob->map == map) + if (pl->ob->map == map) new_draw_info (color, 0, pl->ob, str); } @@ -488,20 +488,3 @@ free (map_mark); } -/** - * Send a kill log record to sockets - */ -void -Log_Kill (const char *Who, const char *What, int WhatType, const char *With, int WithType) -{ - size_t len; - char buf[MAX_BUF]; - - if (With != NULL) - snprintf (buf, MAX_BUF, "%s\t%s\t%d\t%s\t%d\n", Who, What, WhatType, With, WithType); - else - snprintf (buf, MAX_BUF, "%s\t%s\t%d\n", Who, What, WhatType); - - len = strlen (buf); -} -