… | |
… | |
633 | { |
633 | { |
634 | sprintf (buf, "You %s.", buf1); |
634 | sprintf (buf, "You %s.", buf1); |
635 | if (dam != 0) |
635 | if (dam != 0) |
636 | { |
636 | { |
637 | if (dam < 10) |
637 | if (dam < 10) |
638 | op->contr->play_sound (sound_find ("player_hits1")); |
638 | hitter->contr->play_sound (sound_find ("player_hits1")); |
639 | else if (dam < 20) |
639 | else if (dam < 20) |
640 | op->contr->play_sound (sound_find ("player_hits2")); |
640 | hitter->contr->play_sound (sound_find ("player_hits2")); |
641 | else |
641 | else |
642 | op->contr->play_sound (sound_find ("player_hits3")); |
642 | hitter->contr->play_sound (sound_find ("player_hits3")); |
643 | } |
643 | } |
644 | |
644 | |
645 | new_draw_info (NDI_BLACK, 0, hitter, buf); |
645 | new_draw_info (NDI_BLACK, 0, hitter, buf); |
646 | } |
646 | } |
647 | else if (hitter->owner != NULL && hitter->owner->type == PLAYER) |
647 | else if (hitter->owner != NULL && hitter->owner->type == PLAYER) |