From 664bf529ba8d5c2a74698065cfa81521300cea5a Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 15 Jan 2018 03:02:08 -0600 Subject: I think I fixed a bug. I was testing stuff with a wrong binary. it probably worked before too. oh well. --- src/graphics_c3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/graphics_c3.c b/src/graphics_c3.c index b4b9eb9..256a57c 100644 --- a/src/graphics_c3.c +++ b/src/graphics_c3.c @@ -203,7 +203,7 @@ void draw_c3_shape(c3_s_t s) {//outlined. needs to be filled? //draw minimap shi s2.p[1]=c3_add(s.p[0],(c3_t){dist,0,0});//whatever } for(i=0;i1) draw_minimap_line(s2.p[i],s2.p[(i+1)%s2.len]); + if(s.len > 1) draw_minimap_line(s2.p[i],s2.p[(i+1)%s2.len]);//we shouldn't draw circles in here. s3.p[i]=c3_to_c2(s2.p[i]);//we need to convert all points in the shape if we have to draw any parts of it. } if(gra_global.draw3d == 1) { @@ -413,8 +413,7 @@ void draw_screen() { gra_global.oldtime=time(0); gra_global.oldfps=gra_global.fps; gra_global.fps=0; - } - if(global.debug) {//the way I have text done won't scale... + if(global.debug) {//the way I have text done won't scale... // draw_c2_text((cs_t){0,0},global.user); // fprintf(stderr,"\x1b[H"); // fprintf(stderr,"\x1b[2J"); @@ -430,6 +429,7 @@ void draw_screen() { snprintf(tmp,sizeof(tmp)-1,"xr: %d yr: %d zr: %d",global.camera.r.x.d,global.camera.r.y.d,global.camera.r.z.d); fprintf(stderr,"%s\n",tmp); // draw_c2_text((cs_t){gra_global.xoff,(gra_global.height/2)+40},tmp); + } } // if(global.drawminimap) {//this isn't even useful I guess. -- cgit v1.2.3