… | |
… | |
436 | |
436 | |
437 | int |
437 | int |
438 | command_summon (object *op, char *params) |
438 | command_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 | |
… | |
… | |
499 | int |
498 | int |
500 | command_create (object *op, char *params) |
499 | command_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++) |