diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-11-13 05:06:50 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-11-13 13:09:27 +0100 |
commit | d4ec7f300b6086c5a3a6b80eb006e7a11098db53 (patch) | |
tree | 9db1058e7df6dc45986e7f61a2c642d0e0fef260 /crawl-ref/source/fineff.cc | |
parent | d3257a5d2d64c1e7316d4c89696c4c3c0679b9bb (diff) | |
download | crawl-ref-d4ec7f300b6086c5a3a6b80eb006e7a11098db53.tar.gz crawl-ref-d4ec7f300b6086c5a3a6b80eb006e7a11098db53.zip |
Replace a bunch of floating-point sqrt()s by integer ones.
Diffstat (limited to 'crawl-ref/source/fineff.cc')
-rw-r--r-- | crawl-ref/source/fineff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fineff.cc b/crawl-ref/source/fineff.cc index 4a2676626e..affe28d8de 100644 --- a/crawl-ref/source/fineff.cc +++ b/crawl-ref/source/fineff.cc @@ -5,10 +5,10 @@ **/ #include "AppHdr.h" -#include <math.h> #include "effects.h" #include "env.h" #include "fineff.h" +#include "libutil.h" #include "ouch.h" #include "religion.h" #include "view.h" @@ -92,7 +92,7 @@ void fire_final_effects() if (attacker->alive()) print_wounds(attacker->as_monster()); - lose_piety(ceil(sqrt((float)fe.x))); + lose_piety(isqrt_ceil(fe.x)); } else { |