From 9c3e6768e38dc524f288c72bab6dcbbb271f0b82 Mon Sep 17 00:00:00 2001 From: mdw Date: Tue, 18 Mar 2003 10:31:51 +0000 Subject: [PATCH] Add (disabled) capability for drawing sighting circles. --- threed.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/threed.c b/threed.c index 43a9da2..72a56cf 100644 --- a/threed.c +++ b/threed.c @@ -367,6 +367,19 @@ void draw_solid_ship (struct univ_object *univ) point_list[lasv].z, col); } +#if 0 + { + double cx = univ->location.x; + double cy = univ->location.y; + double cz = univ->location.z; + if (cz <= 0) cz = 1; + cx = (cx * 256) / cz + 128; + cy = -(cy * 256) / cz + 96; + gfx_draw_circle(cx * GFX_SCALE, cy * GFX_SCALE, sqrt(ship_list[univ->type]->size) * 256 / + cz * GFX_SCALE, GFX_COL_RED); + } +#endif + if (identify) identify_ship(univ); } -- 2.11.0