From 58fda716e6c1feee85ce7fb15d913c87444c3feb Mon Sep 17 00:00:00 2001 From: Kelly Martin Date: Sun, 16 Sep 2012 17:06:31 -0500 Subject: [PATCH] Explicit cast is required for MSVC. --- plugins/devel/siege-engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/devel/siege-engine.cpp b/plugins/devel/siege-engine.cpp index b8a2f087b..5e5cf5d74 100644 --- a/plugins/devel/siege-engine.cpp +++ b/plugins/devel/siege-engine.cpp @@ -1491,7 +1491,7 @@ struct projectile_hook : df::proj_itemst { // Flight direction vector df::coord dist = target_pos - origin_pos; - float vx = dist.x, vy = dist.y, vz = fabs(dist.z); + float vx = dist.x, vy = dist.y, vz = fabs((float)dist.z); normalize(vx, vy, vz); int start_z = 0;