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.87 by root, Tue Jan 3 11:25:36 2012 UTC vs.
Revision 1.88 by root, Fri Jan 27 22:00:40 2012 UTC

436 436
437int 437int
438command_summon (object *op, char *params) 438command_summon (object *op, char *params)
439{ 439{
440 int i; 440 int i;
441 object *dummy;
442 player *pl; 441 player *pl;
443 442
444 if (!op) 443 if (!op)
445 return 0; 444 return 0;
446 445
499int 498int
500command_create (object *op, char *params) 499command_create (object *op, char *params)
501{ 500{
502 object *tmp = NULL; 501 object *tmp = NULL;
503 int nrof, i, magic, set_magic = 0, set_nrof = 0, gotquote, gotspace; 502 int nrof, i, magic, set_magic = 0, set_nrof = 0, gotquote, gotspace;
504 char buf[MAX_BUF], *cp, *bp = buf, *bp2, *bp3, *bp4, *endline; 503 char buf[MAX_BUF], *cp, *bp = buf, *bp2, *bp3, *endline;
505 archetype *at, *at_spell = NULL; 504 archetype *at, *at_spell = NULL;
506 artifact *art = NULL; 505 artifact *art = NULL;
507 506
508 if (!op) 507 if (!op)
509 return 0; 508 return 0;
657 * is we want to find two spaces, but if we got a quote, 656 * is we want to find two spaces, but if we got a quote,
658 * any spaces there don't count. 657 * any spaces there don't count.
659 */ 658 */
660 while (*bp2 && bp2 <= endline) 659 while (*bp2 && bp2 <= endline)
661 { 660 {
662 bp4 = NULL;
663 gotspace = 0; 661 gotspace = 0;
664 gotquote = 0; 662 gotquote = 0;
665 663
666 /* find the first quote */ 664 /* find the first quote */
667 for (bp3 = bp2; *bp3 && gotspace < 2 && gotquote < 2; bp3++) 665 for (bp3 = bp2; *bp3 && gotspace < 2 && gotquote < 2; bp3++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines