stefan pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=92380c66c893f2375d1de7c3f80f6dc05df5a128
commit 92380c66c893f2375d1de7c3f80f6dc05df5a128 Author: Stefan Schmidt <ste...@osg.samsung.com> Date: Wed Oct 21 10:26:00 2015 +0200 examples/sphere_hunter: fix another instance of floating point incorrectness I missed this one yesterday. Also change it to use floating point values instead of casting which does not make much sense for hard-coded values. CID: 1327343 --- src/examples/sphere_hunter/evas_3d_sphere_hunter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c index 1307b5f..fe1712e 100644 --- a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c +++ b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c @@ -404,7 +404,7 @@ _key_down(void *data, if (camera_y > 26.5) { camera_y -= 0.5; - camera_z -= 0.5 * (7 / 4); + camera_z -= 0.5 * (7.0 / 4.0); } } if (!strcmp(ev->key, "Down")) @@ -412,7 +412,7 @@ _key_down(void *data, if (camera_y < 100.0) { camera_y += 0.5; - camera_z += 0.5 * (7 / (double)4); + camera_z += 0.5 * (7.0 / 4.0); } } if (!strcmp(ev->key, "n")) --