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.65 by root, Thu Nov 8 19:43:26 2007 UTC vs.
Revision 1.72 by root, Fri Dec 19 22:47:29 2008 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra 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
32{ 32{
33 display_motd (op); 33 display_motd (op);
34 return 1; 34 return 1;
35} 35}
36 36
37#ifdef DEBUG_MALLOC_LEVEL
38int
39command_malloc_verify (object *op, char *parms)
40{
41 extern int malloc_verify (void);
42
43 if (!malloc_verify ())
44 new_draw_info (NDI_UNIQUE, 0, op, "Heap is corrupted.");
45 else
46 new_draw_info (NDI_UNIQUE, 0, op, "Heap checks out OK.");
47 return 1;
48}
49#endif
50
51typedef struct 37typedef struct
52{ 38{
53 char namebuf[MAX_BUF]; 39 char namebuf[MAX_BUF];
54 int login_order; 40 int login_order;
55} chars_names; 41} chars_names;
104command_dumpfriendlyobjects (object *op, char *params) 90command_dumpfriendlyobjects (object *op, char *params)
105{ 91{
106 dump_friendly_objects (); 92 dump_friendly_objects ();
107 return 0; 93 return 0;
108} 94}
109
110int
111command_printlos (object *op, char *params)
112{
113 if (op)
114 print_los (op);
115 return 0;
116}
117
118 95
119int 96int
120command_version (object *op, char *params) 97command_version (object *op, char *params)
121{ 98{
122 version (op); 99 version (op);
177} 154}
178 155
179int 156int
180command_fix_me (object *op, char *params) 157command_fix_me (object *op, char *params)
181{ 158{
182 sum_weight (op); 159 op->update_weight ();
183 op->update_stats (); 160 op->update_stats ();
184 new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed."); 161 new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed.");
185
186 return 1;
187}
188
189int
190command_logs (object *op, char *params)
191{
192 new_draw_info (NDI_UNIQUE, 0, op, "Nobody is currently logging kills.");
193 162
194 return 1; 163 return 1;
195} 164}
196 165
197int 166int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines