diff options
author | epoch <epoch@hacking.allowed.org> | 2018-01-15 03:02:08 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2018-01-15 03:02:08 -0600 |
commit | 664bf529ba8d5c2a74698065cfa81521300cea5a (patch) | |
tree | d7b582fca28996838a72871c6cf81712eec348e9 /src | |
parent | dfb4cc611bde166e56cae44c3ab389ba1bcbc2a5 (diff) | |
download | hackvr-664bf529ba8d5c2a74698065cfa81521300cea5a.tar.gz hackvr-664bf529ba8d5c2a74698065cfa81521300cea5a.zip |
I think I fixed a bug. I was testing stuff with a wrong binary. it probably worked before too. oh well.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics_c3.c | 6 |
1 files changed, 3 insertions, 3 deletions
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;i<s.len+(s.len==1);i++) { - if(i>1) 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. |