diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-07-25 15:00:08 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2010-07-25 16:27:32 -0500 |
commit | 801ed5f4eca80459e369c14030f0da07ada67303 (patch) | |
tree | c1aa4d45affbd68669596ad4d366d63409d9d31a /crawl-ref/source/sprint.cc | |
parent | 4fc75378a3472bc811f19d76a4e33c1866e5ee61 (diff) | |
download | crawl-ref-801ed5f4eca80459e369c14030f0da07ada67303.tar.gz crawl-ref-801ed5f4eca80459e369c14030f0da07ada67303.zip |
Properly use mons_class_hit_dice() in a few more places.
Diffstat (limited to 'crawl-ref/source/sprint.cc')
-rw-r--r-- | crawl-ref/source/sprint.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/sprint.cc b/crawl-ref/source/sprint.cc index 95243b1b7f..4ef70c4252 100644 --- a/crawl-ref/source/sprint.cc +++ b/crawl-ref/source/sprint.cc @@ -47,7 +47,7 @@ int sprint_modify_abyss_exit_chance(int exit_chance) /* XXX: ugh, can't think of a better thing to do here */ bool sprint_veto_random_abyss_monster(monster_type type) { - return random2(20) > (int)get_monster_data(type)->hpdice[0]; + return random2(20) > mons_class_hit_dice(type); } mapref_vector get_sprint_maps() |