X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;h=aebdaeecebffa1ed6574dfca8e5d0f652c8655f4;hp=a76999442d9d8fa86ff1c74c6c62b9a9d1372da2;hb=279764e831c70dd8e02a5d70b1c3715464b1b731;hpb=9511d7cf7306574d6521a99537c420c720a8000d diff --git a/helper.c b/helper.c index a769994..aebdaee 100644 --- a/helper.c +++ b/helper.c @@ -278,7 +278,10 @@ void drawLine() { glVertex3i( lineLength - arrowLength, 0.0, -1.0 ); glVertex3i( -lineLength, 0.0, 0.0 ); - glVertex3i( -lineLength - arrowLength, 0.0, 1.0 ); + glVertex3i( -lineLength + arrowLength, 0.0, 1.0 ); + + glVertex3i( -lineLength, 0.0, 0.0 ); + glVertex3i( -lineLength + arrowLength, 0.0, -1.0 ); // z arrow glVertex3i( 0.0, 0.0, lineLength );