Explicit cast is required for MSVC.

develop
Kelly Martin 2012-09-16 17:06:31 -05:00
parent 847dadd3f5
commit 58fda716e6
1 changed files with 1 additions and 1 deletions

@ -1491,7 +1491,7 @@ struct projectile_hook : df::proj_itemst {
// Flight direction vector // Flight direction vector
df::coord dist = target_pos - origin_pos; 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); normalize(vx, vy, vz);
int start_z = 0; int start_z = 0;