summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_item.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-26 11:24:14 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-26 11:24:14 +0200
commit403d3f9bb4977205216be8a5d32526f9d91de168 (patch)
tree6c1c56c7f0c33beecffce4d9a2598d71978575d4 /crawl-ref/source/l_item.cc
parent47a8935d7344bcb8e316d8b8265ababa51ac09ba (diff)
downloadcrawl-ref-403d3f9bb4977205216be8a5d32526f9d91de168.tar.gz
crawl-ref-403d3f9bb4977205216be8a5d32526f9d91de168.zip
Don't use two misleading schemes for reach ranges.
Both were scalars compatible with int, and both used the name "reach_range" is some cases. Thus, let's use 2/5/8 everywhere. This probably makes the enum obsolete.
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r--crawl-ref/source/l_item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc
index 50df3e8f44..2fa0d66eff 100644
--- a/crawl-ref/source/l_item.cc
+++ b/crawl-ref/source/l_item.cc
@@ -513,7 +513,7 @@ IDEF(reach_range)
return (0);
reach_type rt = weapon_reach(*item);
- lua_pushnumber(ls, reach_range(rt));
+ lua_pushnumber(ls, rt);
return (1);
}