chiark
/
gitweb
/
~mdw
/
newkind
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c597a4f
)
Add (disabled) capability for drawing sighting circles.
author
mdw
<mdw>
Tue, 18 Mar 2003 10:31:51 +0000
(10:31 +0000)
committer
mdw
<mdw>
Tue, 18 Mar 2003 10:31:51 +0000
(10:31 +0000)
threed.c
patch
|
blob
|
blame
|
history
diff --git
a/threed.c
b/threed.c
index 43a9da2bb1a86237b26638208dba9d16e6c43667..72a56cf0f46f994b4491d3328b8c646236a352a1 100644
(file)
--- a/
threed.c
+++ b/
threed.c
@@
-367,6
+367,19
@@
void draw_solid_ship (struct univ_object *univ)
point_list[lasv].z, col);
}
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);
}
if (identify)
identify_ship(univ);
}