summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 13:23:51 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 13:23:51 +0000
commitdac84d3345e678e512593f7652dd59a3fde355c1 (patch)
tree215ff0d4f01b0a9b3d3f48a58ef17b19026a293c /crawl-ref/source/view.h
parent7f0ca1dddea2c73857b14ef83c6e6e835950000e (diff)
downloadcrawl-ref-dac84d3345e678e512593f7652dd59a3fde355c1.tar.gz
crawl-ref-dac84d3345e678e512593f7652dd59a3fde355c1.zip
Trunk->0.3 merge (2920): Fixed monster raise dead using player LOS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2973 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 3d13f5b7be..7d0c72fb28 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -94,8 +94,7 @@ void find_features(const std::vector<coord_def>& features,
/* ***********************************************************************
* called from: direct - monstufff - view
* *********************************************************************** */
-void losight(FixedArray<unsigned int, ENV_SHOW_DIAMETER, ENV_SHOW_DIAMETER>& sh,
- FixedArray<dungeon_feature_type, GXM, GYM>& gr,
+void losight(env_show_grid &sh, feature_grid &gr,
int x_p, int y_p);
@@ -184,8 +183,15 @@ void add_feature_override(const std::string &text);
void clear_cset_overrides();
void add_cset_override(char_set_type set, const std::string &overrides);
-bool see_grid( int grx, int gry );
-inline bool see_grid(const coord_def &p) { return see_grid(p.x, p.y); }
+bool see_grid( const env_show_grid &show,
+ const coord_def &c,
+ const coord_def &pos );
+bool see_grid(const coord_def &p);
+
+inline bool see_grid( int grx, int gry )
+{
+ return see_grid(coord_def(grx, gry));
+}
std::string screenshot(bool fullscreen = false);