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.75 by root, Fri Nov 6 12:49:19 2009 UTC vs.
Revision 1.76 by root, Fri Nov 6 13:31:47 2009 UTC

360 360
361 become_follower (ob, god); 361 become_follower (ob, god);
362 return 1; 362 return 1;
363} 363}
364 364
365// TODO: Rewrite banish in perl and get rid of the following two functions
366static int
367command_kick (object *op, char *params)
368{
369 for_all_players (pl)
370 if ((params == NULL || !strcmp (&pl->ob->name, params)) && !INVOKE_PLAYER (KICK, pl, ARG_STRING (params)))
371 {
372 object *plop = pl->ob;
373
374 if (!QUERY_FLAG (plop, FLAG_REMOVED) && !QUERY_FLAG (plop, FLAG_FREED))
375 {
376 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s is kicked out of the game.", &plop->name);
377 plop->contr->killer = op;
378 }
379
380 pl->ns->destroy ();
381 }
382
383 return 1;
384}
385
386//TODO
387#if 0
388int
389command_save_overlay (object *op, char *params)
390{
391 if (!op)
392 return 0;
393
394 if (op != NULL && !QUERY_FLAG (op, FLAG_WIZ))
395 {
396 new_draw_info (NDI_UNIQUE, 0, op, "Sorry, you can't force an overlay save.");
397 return 1;
398 }
399
400 new_save_map (op->map, 2);
401 new_save_map (op->map, 0);
402 new_draw_info (NDI_UNIQUE, 0, op, "Current map has been saved as an" " overlay.");
403
404 ready_map_name (op->map->path, 0);
405
406 return 1;
407}
408#endif
409
410int 365int
411command_freeze (object *op, char *params) 366command_freeze (object *op, char *params)
412{ 367{
413 int ticks; 368 int ticks;
414 player *pl; 369 player *pl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines