summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/los.cc9
-rw-r--r--crawl-ref/source/losparam.h3
2 files changed, 2 insertions, 10 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 88fc7d8d01..655bb909e5 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -867,7 +867,7 @@ void losight(los_grid& sh, const los_param& dat)
// Center is always visible.
const coord_def o = coord_def(0,0);
- sh(o) = dat.appearance(o);
+ sh(o) = true;
}
struct los_param_funcs : public los_param
@@ -887,11 +887,6 @@ struct los_param_funcs : public los_param
return (map_bounds(p + center) && bounds.contains(p));
}
- unsigned appearance(const coord_def& p) const
- {
- return (grid_appearance(p + center));
- }
-
opacity_type opacity(const coord_def& p) const
{
return (opc(p + center));
@@ -913,7 +908,7 @@ void losight_permissive(los_grid &sh, const coord_def& center)
const coord_def sp = coord_def(x, y);
const coord_def pos = center + sp;
if (map_bounds(pos))
- sh(sp) = env.grid(pos);
+ sh(sp) = true;
}
}
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h
index 6d770428e1..ccdd548f19 100644
--- a/crawl-ref/source/losparam.h
+++ b/crawl-ref/source/losparam.h
@@ -95,9 +95,6 @@ struct los_param
// (including boundary) and within the LOS area
virtual bool los_bounds(const coord_def& p) const = 0;
- // appearance(p) will be copied to show(sh_o+p) for visible p.
- virtual unsigned appearance(const coord_def& p) const = 0;
-
virtual opacity_type opacity(const coord_def& p) const = 0;
};