From c4746c0f6d328baa429c96e54d86d2d7f97ccbcc Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:57 +0100 Subject: Remove r_name, r_text, r_head in favor of simple strings --- src/spells1.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/spells1.cc') diff --git a/src/spells1.cc b/src/spells1.cc index 0eda200c..c7b02580 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -4354,8 +4354,6 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) char killer [80]; - cptr name = (r_name + r_ptr->name); - /* Is the monster "seen"? */ bool_ seen; @@ -4827,8 +4825,8 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) { if (seen) obvious = TRUE; if ((r_ptr->d_char == 'E') && - (prefix(name, "W") || - (strstr((r_name + r_ptr->name), "Unmaker")))) + (prefix(r_ptr->name, "W") || + (strstr(r_ptr->name, "Unmaker")))) { note = " is immune."; dam = 0; @@ -4848,8 +4846,8 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) { if (seen) obvious = TRUE; if ((r_ptr->d_char == 'E') && - (prefix(name, "W") || - (strstr((r_name + r_ptr->name), "Unmaker")))) + (prefix(r_ptr->name, "W") || + (strstr(r_ptr->name, "Unmaker")))) { note = " is immune."; dam = 0; -- cgit v1.2.3