diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-21 11:04:32 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-21 11:04:32 +0000 |
commit | 7d317e6fc0e6847a95d0c59888400f135af66cd7 (patch) | |
tree | 300529b27b82ca9ee572659368389270c5fc6597 /crawl-ref/source/monplace.h | |
parent | 6d641e67f004a7dc483e3590a1ecbde0e3ccd455 (diff) | |
download | crawl-ref-7d317e6fc0e6847a95d0c59888400f135af66cd7.tar.gz crawl-ref-7d317e6fc0e6847a95d0c59888400f135af66cd7.zip |
Remove a few more unnecessary casts.
Don't cheat on constness in _mons_has_path_to_player.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8651 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r-- | crawl-ref/source/monplace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h index b92ae4bd60..093c714576 100644 --- a/crawl-ref/source/monplace.h +++ b/crawl-ref/source/monplace.h @@ -343,7 +343,7 @@ public: // public methods void set_range(int r); coord_def next_pos(const coord_def &p) const; - bool init_pathfind(monsters *mon, coord_def dest, + bool init_pathfind(const monsters *mon, coord_def dest, bool diag = true, bool msg = false, bool pass_unmapped = false); bool init_pathfind(coord_def src, coord_def dest, @@ -366,7 +366,7 @@ protected: // The monster trying to find a path. - monsters *mons; + const monsters *mons; // Our destination, and the current position we're looking at. coord_def start, target, pos; |