diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-09-05 08:56:03 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-09-05 10:12:56 +0200 |
commit | f07c2355e9784425d99a62335927de80be00fff4 (patch) | |
tree | 79f0060acde0f035c832e0073e2b83af06dfc20f /crawl-ref/source/directn.h | |
parent | d8051c6f31ef3369827b6eaa4a6ccaaa72a8086e (diff) | |
download | crawl-ref-f07c2355e9784425d99a62335927de80be00fff4.tar.gz crawl-ref-f07c2355e9784425d99a62335927de80be00fff4.zip |
View coordinates now relative to viewport, not screen.
Also name some bounds checking functions less terribly and move to
viewgeom, and add new screen<->grid transforms.
Fixes issue #2215 (Fedhas targeting with messages_at_top) and is
likely to reduce the chance of future breakage with messages_at_top.
Also likely to introduce bugs.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r-- | crawl-ref/source/directn.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h index 3d7ddbdb90..46530904df 100644 --- a/crawl-ref/source/directn.h +++ b/crawl-ref/source/directn.h @@ -259,12 +259,6 @@ char mlist_index_to_letter(int index); void direction(dist &moves, const direction_chooser_args& args); -bool in_los_bounds(const coord_def& p); -bool in_viewport_bounds(int x, int y); -inline bool in_viewport_bounds(const coord_def& pos) { - return in_viewport_bounds(pos.x, pos.y); -} - std::string thing_do_grammar(description_level_type dtype, bool add_stop, bool force_article, |