… | |
… | |
292 | /* this should be passed to this fctn, not effiecent cpu use this way */ |
292 | /* this should be passed to this fctn, not effiecent cpu use this way */ |
293 | int batches = abs (nbatches); |
293 | int batches = abs (nbatches); |
294 | |
294 | |
295 | |
295 | |
296 | /* is the cauldron the right type? */ |
296 | /* is the cauldron the right type? */ |
297 | if (strcmp (rp->cauldron, cauldron->arch->name) != 0) |
297 | if (rp->cauldron != cauldron->arch->name) |
298 | { |
298 | { |
299 | new_draw_info (NDI_UNIQUE, 0, caster, "You are not using the proper" " facilities for this formula."); |
299 | new_draw_info (NDI_UNIQUE, 0, caster, "You are not using the proper" " facilities for this formula."); |
300 | return 0; |
300 | return 0; |
301 | } |
301 | } |
302 | |
302 | |
… | |
… | |
310 | { |
310 | { |
311 | object *tmp; |
311 | object *tmp; |
312 | |
312 | |
313 | for (tmp = caster->inv; tmp; tmp = tmp->below) |
313 | for (tmp = caster->inv; tmp; tmp = tmp->below) |
314 | { |
314 | { |
315 | if (tmp->type == FORCE && tmp->slaying && !strcmp (rp->keycode, tmp->slaying)) |
315 | if (tmp->type == FORCE && tmp->slaying && rp->keycode == tmp->slaying) |
316 | break; |
316 | break; |
317 | } |
317 | } |
318 | |
318 | |
319 | if (!tmp) |
319 | if (!tmp) |
320 | { /* failure--no code found */ |
320 | { /* failure--no code found */ |
… | |
… | |
448 | { |
448 | { |
449 | size_t i; |
449 | size_t i; |
450 | |
450 | |
451 | for (i = 0; i < rp->arch_names; i++) |
451 | for (i = 0; i < rp->arch_names; i++) |
452 | { |
452 | { |
453 | if (strcmp (item->arch->name, rp->arch_name[i]) == 0) |
453 | if (item->arch->name == rp->arch_name[i]) |
454 | { |
454 | { |
455 | *rp_arch_index = i; |
455 | *rp_arch_index = i; |
456 | break; |
456 | break; |
457 | } |
457 | } |
458 | } |
458 | } |
|
|
459 | |
459 | if (i < rp->arch_names) |
460 | if (i < rp->arch_names) |
460 | break; |
461 | break; |
461 | } |
462 | } |
462 | |
463 | |
463 | /* failed, create a fresh object. Note no nrof>1 because that would |
464 | /* failed, create a fresh object. Note no nrof>1 because that would |