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.30 by root, Mon Dec 25 14:54:44 2006 UTC vs.
Revision 1.48 by pippijn, Thu Mar 1 13:30:10 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) 2002 Mark Wedel & Crossfire Development Team 5 * Copyright (C) 2002 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 * Copyright (C) 1992 Frank Tore Johansen
6 7 *
7 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
8 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
9 the Free Software Foundation; either version 2 of the License, or 10 * the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version. 11 * (at your option) any later version.
11 12 *
12 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,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 16 * GNU General Public License for more details.
16 17 *
17 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
18 along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 21 *
21 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>
22*/ 23 */
23 24
24#include <global.h> 25#include <global.h>
25#include <loader.h> 26#include <loader.h>
26#include <sproto.h> 27#include <sproto.h>
27 28
28#include <dirent.h>
29
30extern weathermap_t **weathermap;
31
32/* Handles misc. input request - things like hash table, malloc, maps, 29/* Handles misc. input request - things like hash table, malloc, maps,
33 * who, etc. 30 * who, etc.
34 */ 31 */
35
36void
37map_info (object *op, char *search)
38{
39 maptile *m;
40 char buf[MAX_BUF], map_path[MAX_BUF];
41 long sec = time (0);
42
43 new_draw_info_format (NDI_UNIQUE, 0, op, "Current time is: %02ld:%02ld:%02ld.", (sec % 86400) / 3600, (sec % 3600) / 60, sec % 60);
44 new_draw_info (NDI_UNIQUE, 0, op, "Path Pl PlM IM TO Dif Reset");
45 for (m = first_map; m != NULL; m = m->next)
46 {
47
48 if (search && strstr (m->path, search) == NULL)
49 continue; /* Skip unwanted maps */
50 /* Print out the last 18 characters of the map name... */
51 if (strlen (m->path) <= 18)
52 strcpy (map_path, m->path);
53 else
54 strcpy (map_path, m->path + strlen (m->path) - 18);
55 sprintf (buf, "%-18.18s %2d %2d %1d %4d %2d %02d:%02d:%02d",
56 map_path, m->players, players_on_map (m, FALSE),
57 m->in_memory, m->timeout, m->difficulty,
58 (m->reset_time % 86400) / 3600, (m->reset_time % 3600) / 60, m->reset_time % 60);
59 new_draw_info (NDI_UNIQUE, 0, op, buf);
60 }
61}
62 32
63/* This command dumps the body information for object *op. 33/* This command dumps the body information for object *op.
64 * it doesn't care what the params are. 34 * it doesn't care what the params are.
65 * This is mostly meant as a debug command. 35 * This is mostly meant as a debug command.
66 */ 36 */
99{ 69{
100 display_motd (op); 70 display_motd (op);
101 return 1; 71 return 1;
102} 72}
103 73
104int
105command_bug (object *op, char *params)
106{
107 char buf[MAX_BUF];
108
109 if (params == NULL)
110 {
111 new_draw_info (NDI_UNIQUE, 0, op, "what bugs?");
112 return 1;
113 }
114 strcpy (buf, op->name);
115 strcat (buf, " bug-reports: ");
116 strncat (buf, ++params, MAX_BUF - strlen (buf));
117 buf[MAX_BUF - 1] = '\0';
118 bug_report (buf);
119 LOG (llevError, "%s\n", buf);
120 new_draw_info (NDI_ALL | NDI_UNIQUE, 1, NULL, buf);
121 new_draw_info (NDI_UNIQUE, 0, op, "OK, thanks!");
122 return 1;
123}
124
125/* 74/*
126 * Pretty much identical to current map_info, but on a bigger scale 75 * Pretty much identical to current map_info, but on a bigger scale
127 * This function returns the name of the players current region, and 76 * This function returns the name of the players current region, and
128 * a description of it. It is there merely for flavour text. 77 * a description of it. It is there merely for flavour text.
129 */ 78 */
130void 79void
131current_region_info (object *op) 80current_region_info (object *op)
132{ 81{
133 /* 82 if (region *reg = op->region ())
134 * Ok I /suppose/ I should write a seperate function for this, but it isn't
135 * going to be /that/ slow, and won't get called much
136 */
137 region *r = get_region_by_name (get_name_of_region_for_map (op->map));
138
139 if (!r)
140 return;
141 /* This should only be possible if regions are not operating on this server. */
142
143 new_draw_info_format (NDI_UNIQUE, 0, op, "You are in %s. \n %s", get_region_longname (r), get_region_msg (r)); 83 new_draw_info_format (NDI_UNIQUE, 0, op, "You are %s.\n%s", &reg->longname, &reg->msg);
144} 84}
145 85
146void 86void
147current_map_info (object *op) 87current_map_info (object *op)
148{ 88{
149 maptile *m = op->map; 89 maptile *m = op->map;
150 90
151 if (!m) 91 if (!m)
152 return; 92 return;
153 93
154 new_draw_info_format (NDI_UNIQUE, 0, op, "%s (%s) in %s", m->name, m->path, get_name_of_region_for_map (m)); 94 new_draw_info_format (NDI_UNIQUE, 0, op, "%s (%s) %s", &m->name, &m->path, &op->region ()->longname);
155 95
156 if (QUERY_FLAG (op, FLAG_WIZ)) 96 if (QUERY_FLAG (op, FLAG_WIZ))
157 {
158 new_draw_info_format (NDI_UNIQUE, 0, op, 97 new_draw_info_format (NDI_UNIQUE, 0, op,
159 "players:%d difficulty:%d size:%dx%d start:%dx%d timeout %ld", 98 "players:%d difficulty:%d size:%dx%d start:%dx%d timeout %ld",
160 m->players, m->difficulty, m->width, m->height, m->enter_x, m->enter_y, m->timeout); 99 m->players, m->difficulty, m->width, m->height, m->enter_x, m->enter_y, m->timeout);
161 100
162 }
163 if (m->msg) 101 if (m->msg)
164 new_draw_info (NDI_UNIQUE, NDI_NAVY, op, m->msg); 102 new_draw_info (NDI_UNIQUE, NDI_NAVY, op, m->msg);
165} 103}
166 104
167#ifdef DEBUG_MALLOC_LEVEL 105#ifdef DEBUG_MALLOC_LEVEL
179#endif 117#endif
180 118
181int 119int
182command_whereabouts (object *op, char *params) 120command_whereabouts (object *op, char *params)
183{ 121{
184 122 //TODO: should obviously not waste space in struct region for this.
185 region *reg;
186 player *pl;
187
188 /* 123 /*
189 * reset the counter on the region, then use it to store the number of 124 * reset the counter on the region, then use it to store the number of
190 * players there. 125 * players there.
191 * I don't know how thread-safe this would be, I suspect not very.... 126 * I don't know how thread-safe this would be, I suspect not very....
192 */ 127 */
193 for (reg = first_region; reg != NULL; reg = reg->next) 128 for_all_regions (rgn)
194 {
195 reg->counter = 0; 129 rgn->counter = 0;
196 } 130
197 for_all_players (pl) 131 for_all_players (pl)
198 if (pl->ob->map != NULL) 132 if (pl->ob->map)
199 get_region_by_map (pl->ob->map)->counter++; 133 ++pl->ob->region ()->counter;
200 134
201 /* we only want to print out by places with a 'longname' field... */ 135 /* we only want to print out by places with a 'longname' field... */
202 for (reg = first_region; reg != NULL; reg = reg->next) 136 for_all_regions (rgn)
203 { 137 {
204 if (reg->longname == NULL && reg->counter > 0) 138 if (!rgn->longname && rgn->counter > 0)
205 { 139 {
206 if (reg->parent != NULL) 140 if (rgn->parent)
207 { 141 {
208 reg->parent->counter += reg->counter; 142 rgn->parent->counter += rgn->counter;
209 reg->counter = 0; 143 rgn->counter = 0;
210 } 144 }
211 else /*uh oh, we shouldn't be here. */ 145 else /*uh oh, we shouldn't be here. */
212 LOG (llevError, "command_whereabouts() Region %s with no longname has no parent", reg->name); 146 LOG (llevError, "command_whereabouts() Region %s with no longname has no parent", &rgn->name);
213 } 147 }
214 } 148 }
149
215 new_draw_info_format (NDI_UNIQUE, 0, op, "In the world currently there are:"); 150 new_draw_info_format (NDI_UNIQUE, 0, op, "In the world currently there are:");
216 for (reg = first_region; reg != NULL; reg = reg->next) 151
152 for_all_regions (rgn)
217 if (reg->counter > 0) 153 if (rgn->counter)
218 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players in %s", reg->counter, get_region_longname (reg)); 154 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players %s", rgn->counter, &rgn->longname);
155
219 return 1; 156 return 1;
220} 157}
221 158
222typedef struct 159typedef struct
223{ 160{
224 char namebuf[MAX_BUF]; 161 char namebuf[MAX_BUF];
225 int login_order; 162 int login_order;
226} chars_names; 163} chars_names;
227 164
228int 165int
229command_afk (object *op, char *params)
230{
231 if ((op->contr->ns->afk = !op->contr->ns->afk))
232 new_draw_info (NDI_UNIQUE, 0, op, "You are no longer AFK");
233 else
234 new_draw_info (NDI_UNIQUE, 0, op, "You are now AFK");
235
236 return 1;
237}
238
239int
240command_mapinfo (object *op, char *params) 166command_mapinfo (object *op, char *params)
241{ 167{
242 current_map_info (op); 168 current_map_info (op);
243 return 1; 169 return 1;
244} 170}
249 current_region_info (op); 175 current_region_info (op);
250 return 1; 176 return 1;
251} 177}
252 178
253int 179int
254command_maps (object *op, char *params)
255{
256 map_info (op, params);
257 return 1;
258}
259
260int
261command_time (object *op, char *params) 180command_time (object *op, char *params)
262{ 181{
263 print_tod (op); 182 print_tod (op);
264 return 1; 183 return 1;
265} 184}
266 185
267int 186int
268command_weather (object *op, char *params) 187command_weather (object *op, char *params)
269{ 188{
189#if 0
270 int wx, wy, temp, sky; 190 int wx, wy, temp, sky;
271 char buf[MAX_BUF]; 191 char buf[MAX_BUF];
272 192
273 if (settings.dynamiclevel < 1) 193 if (settings.dynamiclevel < 1)
274 return 1; 194 return 1;
390 break; 310 break;
391 case SKY_BLIZZARD: 311 case SKY_BLIZZARD:
392 new_draw_info (NDI_UNIQUE, 0, op, "A full blown blizzard is in effect. You might want to take cover!"); 312 new_draw_info (NDI_UNIQUE, 0, op, "A full blown blizzard is in effect. You might want to take cover!");
393 break; 313 break;
394 } 314 }
395 return 1; 315#endif
396}
397
398int
399command_archs (object *op, char *params)
400{
401 arch_info (op);
402 return 1; 316 return 1;
403} 317}
404 318
405int 319int
406command_hiscore (object *op, char *params) 320command_hiscore (object *op, char *params)
417 331
418 if (params == NULL || !sscanf (params, "%d", &i)) 332 if (params == NULL || !sscanf (params, "%d", &i))
419 { 333 {
420 sprintf (buf, "Global debug level is %d.", settings.debug); 334 sprintf (buf, "Global debug level is %d.", settings.debug);
421 new_draw_info (NDI_UNIQUE, 0, op, buf); 335 new_draw_info (NDI_UNIQUE, 0, op, buf);
422 return 1;
423 }
424 if (op != NULL && !QUERY_FLAG (op, FLAG_WIZ))
425 {
426 new_draw_info (NDI_UNIQUE, 0, op, "Privileged command.");
427 return 1; 336 return 1;
428 } 337 }
429 settings.debug = (enum LogLevel) FABS (i); 338 settings.debug = (enum LogLevel) FABS (i);
430 sprintf (buf, "Set debug level to %d.", i); 339 sprintf (buf, "Set debug level to %d.", i);
431 new_draw_info (NDI_UNIQUE, 0, op, buf); 340 new_draw_info (NDI_UNIQUE, 0, op, buf);
457 dump_friendly_objects (); 366 dump_friendly_objects ();
458 return 0; 367 return 0;
459} 368}
460 369
461int 370int
462command_dumpmap (object *op, char *params)
463{
464 if (op)
465 dump_map (op->map);
466 return 0;
467}
468
469int
470command_dumpallmaps (object *op, char *params)
471{
472 dump_all_maps ();
473 return 0;
474}
475
476int
477command_printlos (object *op, char *params) 371command_printlos (object *op, char *params)
478{ 372{
479 if (op) 373 if (op)
480 print_los (op); 374 print_los (op);
481 return 0; 375 return 0;
486command_version (object *op, char *params) 380command_version (object *op, char *params)
487{ 381{
488 version (op); 382 version (op);
489 return 0; 383 return 0;
490} 384}
491
492 385
493#ifndef BUG_LOG 386#ifndef BUG_LOG
494# define BUG_LOG "bug_log" 387# define BUG_LOG "bug_log"
495#endif 388#endif
496void 389void
609 op->update_stats (); 502 op->update_stats ();
610 return 1; 503 return 1;
611} 504}
612 505
613int 506int
614command_players (object *op, char *paramss)
615{
616 char buf[MAX_BUF];
617 char *t;
618 DIR *Dir;
619
620 sprintf (buf, "%s/%s/", settings.localdir, settings.playerdir);
621 t = buf + strlen (buf);
622 if ((Dir = opendir (buf)) != NULL)
623 {
624 const struct dirent *Entry;
625
626 while ((Entry = readdir (Dir)))
627 {
628 /* skip '.' , '..' */
629 if (!((Entry->d_name[0] == '.' && Entry->d_name[1] == '\0') ||
630 (Entry->d_name[0] == '.' && Entry->d_name[1] == '.' && Entry->d_name[2] == '\0')))
631 {
632 struct stat Stat;
633
634 strcpy (t, Entry->d_name);
635 if (stat (buf, &Stat) == 0)
636 {
637 /* This was not posix compatible
638 * if ((Stat.st_mode & S_IFMT)==S_IFDIR) {
639 */
640 if (S_ISDIR (Stat.st_mode))
641 {
642 char buf2[MAX_BUF];
643 struct tm *tm = localtime (&Stat.st_mtime);
644
645 sprintf (buf2, "%s\t%04d %02d %02d %02d %02d %02d",
646 Entry->d_name, 1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
647 new_draw_info (NDI_UNIQUE, 0, op, buf2);
648 }
649 }
650 }
651 }
652 }
653 closedir (Dir);
654 return 0;
655}
656
657
658
659int
660command_logs (object *op, char *params) 507command_logs (object *op, char *params)
661{ 508{
662 new_draw_info (NDI_UNIQUE, 0, op, "Nobody is currently logging kills."); 509 new_draw_info (NDI_UNIQUE, 0, op, "Nobody is currently logging kills.");
663 510
664 return 1; 511 return 1;
685 else 532 else
686 { 533 {
687 new_draw_info_format (NDI_UNIQUE, 0, op, "applymode: Unknown options %s, valid options are nochoice, never, always", params); 534 new_draw_info_format (NDI_UNIQUE, 0, op, "applymode: Unknown options %s, valid options are nochoice, never, always", params);
688 return 0; 535 return 0;
689 } 536 }
537
690 new_draw_info_format (NDI_UNIQUE, 0, op, "Applymode %s set to %s", 538 new_draw_info_format (NDI_UNIQUE, 0, op, "Applymode %s set to %s",
691 (unapply == op->contr->unapply ? "" : " now"), types[op->contr->unapply]); 539 (unapply == op->contr->unapply ? "" : " now"), types[op->contr->unapply]);
692 return 1; 540 return 1;
693} 541}
694 542
716 found++; 564 found++;
717 op->contr->bowtype = (bowtype_t) i; 565 op->contr->bowtype = (bowtype_t) i;
718 break; 566 break;
719 } 567 }
720 } 568 }
569
721 if (!found) 570 if (!found)
722 { 571 {
723 sprintf (buf, "bowmode: Unknown options %s, valid options are:", params); 572 sprintf (buf, "bowmode: Unknown options %s, valid options are:", params);
724 for (i = 0; i <= bow_bestarrow; i++) 573 for (i = 0; i <= bow_bestarrow; i++)
725 { 574 {
731 strcat (buf, "."); 580 strcat (buf, ".");
732 } 581 }
733 new_draw_info_format (NDI_UNIQUE, 0, op, buf); 582 new_draw_info_format (NDI_UNIQUE, 0, op, buf);
734 return 0; 583 return 0;
735 } 584 }
585
736 new_draw_info_format (NDI_UNIQUE, 0, op, "bowmode %s set to %s", (oldtype == op->contr->bowtype ? "" : "now"), types[op->contr->bowtype]); 586 new_draw_info_format (NDI_UNIQUE, 0, op, "bowmode %s set to %s", (oldtype == op->contr->bowtype ? "" : "now"), types[op->contr->bowtype]);
737 return 1; 587 return 1;
738} 588}
739 589
740int 590int
914 764
915 if (!(dirp = opendir (filename))) 765 if (!(dirp = opendir (filename)))
916 return; 766 return;
917 767
918 line[0] = '\0'; 768 line[0] = '\0';
919 while (de = readdir (dirp)) 769 while ((de = readdir (dirp)))
920 { 770 {
921 namelen = strlen (de->d_name); 771 namelen = strlen (de->d_name);
922 if (namelen <= 2 && *de->d_name == '.' && (namelen == 1 || de->d_name[1] == '.')) 772 if (namelen <= 2 && *de->d_name == '.' && (namelen == 1 || de->d_name[1] == '.'))
923 continue; 773 continue;
924 linelen += namelen + 1; 774 linelen += namelen + 1;
1131 return 0; 981 return 0;
1132 } 982 }
1133} 983}
1134 984
1135int 985int
1136command_quit (object *op, char *params)
1137{
1138 new_draw_info (NDI_UNIQUE, 0, op,
1139 "Quitting will delete your character PERMANENTLY. If you are sure you want to do this, then use the quit_character command instead of quit.");
1140 return 1;
1141}
1142
1143int
1144command_real_quit (object *op, char *params)
1145{
1146 send_query (op->contr->ns, CS_QUERY_SINGLECHAR, "Quitting will delete your character.\nAre you sure you want to quit (y/n):");
1147
1148 op->contr->ns->state = ST_CONFIRM_QUIT;
1149 return 1;
1150}
1151
1152/*
1153 * don't allow people to exit explore mode. It otherwise becomes
1154 * really easy to abuse this.
1155 */
1156int
1157command_explore (object *op, char *params)
1158{
1159 if (settings.explore_mode == FALSE)
1160 return 1;
1161 /*
1162 * I guess this is the best way to see if we are solo or not. Actually,
1163 * are there any cases when first_player->next==NULL and we are not solo?
1164 */
1165 if ((first_player != op->contr) || (first_player->next != NULL))
1166 {
1167 new_draw_info (NDI_UNIQUE, 0, op, "You can not enter explore mode if you are in a party");
1168 }
1169 else if (op->contr->explore)
1170 new_draw_info (NDI_UNIQUE, 0, op, "There is no return from explore mode");
1171 else
1172 {
1173 op->contr->explore = 1;
1174 new_draw_info (NDI_UNIQUE, 0, op, "You are now in explore mode");
1175 }
1176 return 1;
1177}
1178
1179int
1180command_sound (object *op, char *params) 986command_sound (object *op, char *params)
1181{ 987{
1182 if (op->contr->ns->sound) 988 if (op->contr->ns->sound)
1183 { 989 {
1184 op->contr->ns->sound = 0; 990 op->contr->ns->sound = 0;
1189 op->contr->ns->sound = 1; 995 op->contr->ns->sound = 1;
1190 new_draw_info (NDI_UNIQUE, 0, op, "The sounds are enabled."); 996 new_draw_info (NDI_UNIQUE, 0, op, "The sounds are enabled.");
1191 } 997 }
1192 998
1193 return 1; 999 return 1;
1194}
1195
1196int
1197explore_mode (void)
1198{
1199 player *pl;
1200
1201 if (settings.explore_mode == TRUE)
1202 {
1203 for (pl = first_player; pl != (player *) NULL; pl = pl->next)
1204 if (pl->explore)
1205 return 1;
1206 }
1207 return 0;
1208} 1000}
1209 1001
1210int 1002int
1211command_title (object *op, char *params) 1003command_title (object *op, char *params)
1212{ 1004{
1252 strcpy (op->contr->own_title, params); 1044 strcpy (op->contr->own_title, params);
1253 return 1; 1045 return 1;
1254} 1046}
1255 1047
1256int 1048int
1257command_save (object *op, char *params)
1258{
1259 if (!op->stats.exp)
1260 new_draw_info (NDI_UNIQUE, 0, op, "You don't deserve to save yet.");
1261 else
1262 {
1263 op->contr->save ();
1264 new_draw_info (NDI_UNIQUE, 0, op, "You have been saved.");
1265 }
1266
1267 return 1;
1268}
1269
1270int
1271command_peaceful (object *op, char *params) 1049command_peaceful (object *op, char *params)
1272{ 1050{
1273 new_draw_info (NDI_UNIQUE, 0, op, 1051 new_draw_info (NDI_UNIQUE, 0, op,
1274 "You cannot change your peaceful setting with this command." 1052 "You cannot change your peaceful setting with this command."
1275 " Please speak to the priest in the temple of Gorokh" 1053 " Please speak to the priest in the temple of Gorokh"
1314 new_draw_info (NDI_UNIQUE, 0, op, "You are braced."); 1092 new_draw_info (NDI_UNIQUE, 0, op, "You are braced.");
1315 else 1093 else
1316 new_draw_info (NDI_UNIQUE, 0, op, "Not braced."); 1094 new_draw_info (NDI_UNIQUE, 0, op, "Not braced.");
1317 1095
1318 op->update_stats (); 1096 op->update_stats ();
1319 return 0;
1320}
1321
1322int
1323command_style_map_info (object *op, char *params)
1324{
1325 extern maptile *styles;
1326 maptile *mp;
1327 int maps_used = 0, mapmem = 0, objects_used = 0, x, y;
1328 object *tmp;
1329
1330 for (mp = styles; mp != NULL; mp = mp->next)
1331 {
1332 maps_used++;
1333 mapmem += mp->width * mp->height * (sizeof (object *) + sizeof (mapspace)) + sizeof (maptile);
1334 for (x = 0; x < mp->width; x++)
1335 {
1336 for (y = 0; y < mp->height; y++)
1337 {
1338 for (tmp = GET_MAP_OB (mp, x, y); tmp != NULL; tmp = tmp->above)
1339 objects_used++;
1340 }
1341 }
1342 }
1343 new_draw_info_format (NDI_UNIQUE, 0, op, "Style maps loaded: %d", maps_used);
1344 new_draw_info (NDI_UNIQUE, 0, op, "Memory used, not");
1345 new_draw_info_format (NDI_UNIQUE, 0, op, "including objects: %d", mapmem);
1346 new_draw_info_format (NDI_UNIQUE, 0, op, "Style objects: %d", objects_used);
1347 new_draw_info_format (NDI_UNIQUE, 0, op, "Mem for objects: %d", objects_used * sizeof (object));
1348 return 0; 1097 return 0;
1349} 1098}
1350 1099
1351int 1100int
1352command_kill_pets (object *op, char *params) 1101command_kill_pets (object *op, char *params)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines