aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-13 18:54:21 +0200
committerJohannes Schickel2011-04-13 18:54:21 +0200
commitf864fef8e9fb95199424996fbf4a43d1d042560d (patch)
tree7e762abd6cf63682c97572b5fb6f982bd94bb408 /engines
parent6db40e0c6c6c575696a7eaaa44b68c7579664d36 (diff)
downloadscummvm-rg350-f864fef8e9fb95199424996fbf4a43d1d042560d.tar.gz
scummvm-rg350-f864fef8e9fb95199424996fbf4a43d1d042560d.tar.bz2
scummvm-rg350-f864fef8e9fb95199424996fbf4a43d1d042560d.zip
TSAGE: Fix compilation on Mac OS X PPC.
Mac OS X PPC's standard C(++) library does not feature any sqrtf function, since the parameter is double anyway I changed it to use sqrt for now. We might want to consider adding some global macros for that on such platforms. Another instance where the same issues caused problems in the past is the MT-32 emulator. See audio/softsynth/mt32/synth.cpp lines 30 to 43 for reference.
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 1fa037ee94..bbeda5bab2 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -925,7 +925,7 @@ int PlayerMover::findDistance(const Common::Point &pt1, const Common::Point &pt2
double yy = diff * 8.0 / 7.0;
yy *= yy;
- return (int)sqrtf(xx + yy);
+ return (int)sqrt(xx + yy);
}
bool PlayerMover::sub_F8E5(const Common::Point &pt1, const Common::Point &pt2, const Common::Point &pt3,