Skip to content
Snippets Groups Projects
Commit bfb76f41 authored by slevy's avatar slevy
Browse files

Oops, now kira_draw needs to ensure we really have something to draw!
parent 99ce90d7
No related branches found
No related tags found
No related merge requests found
......@@ -431,13 +431,17 @@ struct specklist *get_parti( struct stuff *st, double realtime )
void kira_draw( struct stuff *st, struct specklist *slhead, Matrix *Tc2w, float radperpix )
{
struct worldstuff *ww = (struct worldstuff *)st->dyndatadata;
if(ww == NULL)
return;
struct specklist *sl;
float halftickscale = 0.5 * ww->tickscale;
static Point zero = {0,0,0};
Point fwdvec = {0,0,-radperpix}; // scaled by pixels-per-radian
Point eyepoint, fwd, unitfwd;
float fwdd;
float halftickscale = 0.5 * ww->tickscale;
vtfmpoint( &eyepoint, &zero, Tc2w );
vtfmvector( &fwd, &fwdvec, Tc2w );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment