… | |
… | |
930 | LOG (llevError, "Could not find anything to attack on %s\n", &op->name); |
930 | LOG (llevError, "Could not find anything to attack on %s\n", &op->name); |
931 | return 0; |
931 | return 0; |
932 | } |
932 | } |
933 | } |
933 | } |
934 | |
934 | |
935 | if (op->current_weapon != pl->combat_ob) |
|
|
936 | { |
|
|
937 | op->current_weapon = pl->combat_ob; |
935 | op->set_weapon (pl->combat_ob); |
938 | new_draw_info_format (NDI_UNIQUE, 0, op, "You switch to your %s.", &op->current_weapon->name); |
|
|
939 | op->update_stats (); |
|
|
940 | } |
|
|
941 | |
936 | |
942 | /* lose invisiblity/hiding status for running attacks */ |
937 | /* lose invisiblity/hiding status for running attacks */ |
943 | |
|
|
944 | if (pl->tmp_invis) |
938 | if (pl->tmp_invis) |
945 | { |
939 | { |
946 | pl->tmp_invis = 0; |
940 | pl->tmp_invis = 0; |
947 | op->invisible = 0; |
941 | op->invisible = 0; |
948 | op->hide = 0; |
942 | op->hide = 0; |