diff options
author | Florian Diebold <flodiebold@gmail.com> | 2012-06-19 21:51:47 +0200 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2012-06-20 15:55:58 +0200 |
commit | fdd391cc04776b46e0a33c37bf3e092b31705c5a (patch) | |
tree | 4ddf9df544a7c5f29ea47d012e80983c9e33cf00 /crawl-ref/source/tileweb.h | |
parent | 074247553534689e6e62c148d9a20da9a7c46631 (diff) | |
download | crawl-ref-fdd391cc04776b46e0a33c37bf3e092b31705c5a.tar.gz crawl-ref-fdd391cc04776b46e0a33c37bf3e092b31705c5a.zip |
Webtiles: Fix map update with travel_delay=-1 (#5356).
Diffstat (limited to 'crawl-ref/source/tileweb.h')
-rw-r--r-- | crawl-ref/source/tileweb.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/tileweb.h b/crawl-ref/source/tileweb.h index 8128ea4cc0..c38a13ae5f 100644 --- a/crawl-ref/source/tileweb.h +++ b/crawl-ref/source/tileweb.h @@ -182,9 +182,12 @@ protected: coord_def m_next_view_br; std::bitset<GXM * GYM> m_dirty_cells; - void mark_dirty(const coord_def& gc) { m_dirty_cells[gc.y * GXM + gc.x] = true; } - void mark_clean(const coord_def& gc) { m_dirty_cells[gc.y * GXM + gc.x] = false; } - bool is_dirty(const coord_def& gc) { return m_dirty_cells[gc.y * GXM + gc.x]; } + std::bitset<GXM * GYM> m_cells_needing_redraw; + void mark_for_redraw(const coord_def& gc); + void mark_dirty(const coord_def& gc); + void mark_clean(const coord_def& gc); + bool is_dirty(const coord_def& gc); + bool cell_needs_redraw(const coord_def& gc); int m_current_flash_colour; int m_next_flash_colour; |