… | |
… | |
423 | object *op; |
423 | object *op; |
424 | |
424 | |
425 | for (op = pl->inv; op; op = op->below) |
425 | for (op = pl->inv; op; op = op->below) |
426 | if (op->type == BOW && QUERY_FLAG (op, FLAG_APPLIED)) |
426 | if (op->type == BOW && QUERY_FLAG (op, FLAG_APPLIED)) |
427 | break; |
427 | break; |
|
|
428 | |
428 | if (op == NULL) |
429 | if (op == NULL) |
429 | break; |
430 | break; |
430 | |
431 | |
431 | sprintf (obuf, "Range: %s (%s)", query_base_name (op, 0), op->race ? (const char *) op->race : "nothing"); |
432 | sprintf (obuf, "Range: %s (%s)", query_base_name (op, 0), op->race ? (const char *) op->race : "nothing"); |
432 | } |
433 | } |
… | |
… | |
436 | if (settings.casting_time == TRUE) |
437 | if (settings.casting_time == TRUE) |
437 | { |
438 | { |
438 | if (pl->casting_time > -1) |
439 | if (pl->casting_time > -1) |
439 | { |
440 | { |
440 | if (pl->casting_time == 0) |
441 | if (pl->casting_time == 0) |
441 | sprintf (obuf, "Range: Holding spell (%s)", (const char *) pl->spell->name); |
442 | sprintf (obuf, "Range: Holding spell (%s)", &pl->spell->name); |
442 | else |
443 | else |
443 | sprintf (obuf, "Range: Casting spell (%s)", (const char *) pl->spell->name); |
444 | sprintf (obuf, "Range: Casting spell (%s)", &pl->spell->name); |
444 | } |
445 | } |
445 | else |
446 | else |
446 | sprintf (obuf, "Range: spell (%s)", &pl->contr->ranges[range_magic]->name); |
447 | sprintf (obuf, "Range: spell (%s)", &pl->contr->ranges[range_magic]->name); |
447 | } |
448 | } |
448 | else |
449 | else |