summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fineff.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-11-13 05:06:50 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-11-13 13:09:27 +0100
commitd4ec7f300b6086c5a3a6b80eb006e7a11098db53 (patch)
tree9db1058e7df6dc45986e7f61a2c642d0e0fef260 /crawl-ref/source/fineff.cc
parentd3257a5d2d64c1e7316d4c89696c4c3c0679b9bb (diff)
downloadcrawl-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.cc4
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
{