--- deliantra/server/socket/info.C 2007/05/28 21:22:26 1.43
+++ deliantra/server/socket/info.C 2008/05/06 16:44:54 1.48
@@ -1,25 +1,24 @@
/*
- * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
+ * 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 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 it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * 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.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
- * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * 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
*/
/**
@@ -38,6 +37,8 @@
#include
#include
+#include
+
/**
* Draws a normal message on the client. It is pretty
* much the same thing as the draw_info above, but takes a color
@@ -47,7 +48,7 @@
static void
esrv_print_msg (client *ns, int color, const char *str)
{
- ns->send_packet_printf ("drawinfo %d %s", color, str);
+ ns->send_msg (color, "info", str);
}
/**
@@ -62,7 +63,7 @@
static void
esrv_print_ext_msg (client *ns, int color, uint8 type, uint8 subtype, const char *message)
{
- ns->send_packet_printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message);
+ ns->send_packet_printf ("drawextinfo %d %u %u %s", color, type, subtype, message);
}
/**
@@ -85,7 +86,7 @@
return;
if (pl->type == PLAYER)
- esrv_print_msg (pl->contr->ns, colr, (char *) tmp);
+ esrv_print_msg (pl->contr->ns, colr, (char *)tmp);
}
bool
@@ -271,7 +272,6 @@
/**
* Writes to everyone on the map except op1 and op2
*/
-
void
new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str)
{
@@ -283,7 +283,6 @@
/**
* Writes to everyone on the specified map
*/
-
void
new_info_map (int color, maptile * map, const char *str)
{
@@ -293,16 +292,6 @@
}
/**
- * This does nothing now. However, in theory, we should probably send
- * something to the client and let the client figure out how it might want
- * to handle this
- */
-void
-clear_win_info (object *op)
-{
-}
-
-/**
* Sets player title.
*/
void
@@ -499,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);
-}
-