From: Miriam Ruiz Date: Wed, 3 Dec 2008 11:05:28 +0000 (+0100) Subject: Dirty Hack in Sphere Mapping: Use int32_t instead of fixed to avoid a dirty error X-Git-Url: https://repo.or.cz/w/kball.git/commitdiff_plain/90b12de08ad3f2225a3556faa6ea0d93eb6cd713 Dirty Hack in Sphere Mapping: Use int32_t instead of fixed to avoid a dirty error --- diff --git a/src/sphermap.cpp b/src/sphermap.cpp index 4d14e89..be8a0fa 100644 --- a/src/sphermap.cpp +++ b/src/sphermap.cpp @@ -53,7 +53,8 @@ void mapped_sphere_ex (BITMAP *target, int cx, int cy, int r, BITMAP *map, MATRI for (x = - fixtoi (q_cos) + 1; x < fixtoi(q_cos) - 1; x++) { fixed newq_cos, temp_p, temp_q=0; // some temporary variables - fixed newx, newy, newz; // x, y and z after rotation +#warning Dirty Hack: Using int32_t instead of fixed to avoid a dirty error + int32_t newx, newy, newz; // x, y and z after rotation fixed z; // z before rotation. we don't have to calculate x and y // calculate z