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

Comparing deliantra/server/server/c_wiz.C (file contents):
Revision 1.15 by root, Sun Oct 1 23:44:36 2006 UTC vs.
Revision 1.18 by pippijn, Sat Dec 9 17:28:37 2006 UTC

271} 271}
272 272
273int 273int
274command_shutdown (object *op, char *params) 274command_shutdown (object *op, char *params)
275{ 275{
276 struct pl *pl;
277
278 if (op != NULL && !QUERY_FLAG (op, FLAG_WIZ)) 276 if (op != NULL && !QUERY_FLAG (op, FLAG_WIZ))
279 { 277 {
280 new_draw_info (NDI_UNIQUE, 0, op, "Sorry, you can't shutdown the server."); 278 new_draw_info (NDI_UNIQUE, 0, op, "Sorry, you can't shutdown the server.");
281 return 1; 279 return 1;
282 } 280 }
847 845
848 tmp = get_dm_object (op->contr, &params, NULL); 846 tmp = get_dm_object (op->contr, &params, NULL);
849 if (!tmp) 847 if (!tmp)
850 return 1; 848 return 1;
851 849
852 dump_object (tmp); 850 char *dump = dump_object (tmp);
853 new_draw_info (NDI_UNIQUE, 0, op, errmsg); 851 new_draw_info (NDI_UNIQUE, 0, op, dump);
852 free (dump);
853
854 if (QUERY_FLAG (tmp, FLAG_OBJ_ORIGINAL)) 854 if (QUERY_FLAG (tmp, FLAG_OBJ_ORIGINAL))
855 new_draw_info (NDI_UNIQUE, 0, op, "Object is marked original"); 855 new_draw_info (NDI_UNIQUE, 0, op, "Object is marked original");
856
856 return 1; 857 return 1;
857} 858}
858 859
859/** 860/**
860 * When DM is possessing a monster, flip aggression on and off, to allow 861 * When DM is possessing a monster, flip aggression on and off, to allow
1228 return 1; 1229 return 1;
1229 } 1230 }
1230 1231
1231 if (strcmp (params, ".") == 0) 1232 if (strcmp (params, ".") == 0)
1232 params = op->map->path; 1233 params = op->map->path;
1234
1233 m = has_been_loaded (params); 1235 m = has_been_loaded (params);
1234 if (m == NULL) 1236 if (m == NULL)
1235 { 1237 {
1236 new_draw_info (NDI_UNIQUE, 0, op, "No such map."); 1238 new_draw_info (NDI_UNIQUE, 0, op, "No such map.");
1237 return 1; 1239 return 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines