ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_misc.C
(Generate patch)

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.75 by root, Mon Oct 12 14:00:59 2009 UTC vs.
Revision 1.78 by root, Fri Nov 6 13:03:34 2009 UTC

26#include <loader.h> 26#include <loader.h>
27#include <sproto.h> 27#include <sproto.h>
28 28
29/* Handles misc. input request - things like hash table, malloc, maps, etc */ 29/* Handles misc. input request - things like hash table, malloc, maps, etc */
30 30
31int
32command_motd (object *op, char *params)
33{
34 display_motd (op);
35 return 1;
36}
37
38typedef struct 31typedef struct
39{ 32{
40 char namebuf[MAX_BUF]; 33 char namebuf[MAX_BUF];
41 int login_order; 34 int login_order;
42} chars_names; 35} chars_names;
65 58
66 sprintf (buf, "Set debug level to %d.", i); 59 sprintf (buf, "Set debug level to %d.", i);
67 new_draw_info (NDI_UNIQUE, 0, op, buf); 60 new_draw_info (NDI_UNIQUE, 0, op, buf);
68 return 1; 61 return 1;
69} 62}
70
71 63
72/* 64/*
73 * Those dumps should be just one dump with good parser 65 * Those dumps should be just one dump with good parser
74 */ 66 */
75 67
277 269
278/* 270/*
279 * Actual commands. 271 * Actual commands.
280 * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...) 272 * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...)
281 */ 273 */
282 274static int
283int
284onoff_value (const char *line) 275onoff_value (const char *line)
285{ 276{
286 int i; 277 int i;
287 278
288 if (sscanf (line, "%d", &i)) 279 if (sscanf (line, "%d", &i))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines