void drawl(int count1)
{        

if(soldier[count1].alive != 0) {
	double direction;
	double direction2;  
        glLoadIdentity();
							    //-125
	glTranslatef(soldier[count1].X, soldier[count1].Y , -125.0f );

	if(soldier[count1].team == 0) {
		glColor3f( 1.0, 1.0, 0.0 );
		direction = .5;
		direction2 = -1;
	}else if(soldier[count1].team == 1){
		glColor3f( 1.0, 0.0, 0.0 );
		direction = -.5;
		direction2 = 1;
	}
	

	glBegin(GL_LINES);

	//left leg
	glVertex3f(0+direction, -.5, .0001); // origin of the line
	glVertex3f(.5+direction, -1, .0001); // ending point of the line

	//right leg
	glVertex3f(0+direction, -.5, .0001); // origin of the line
	glVertex3f(-.5+direction, -1, .0001); // ending point of the line

	//body
	glVertex3f(0+direction, .5, .0001); // origin of the line
	glVertex3f(0+direction, -.5, .0001); // ending point of the line

	//left arm
	glVertex3f(0+direction, .5, .0001); // origin of the line
	glVertex3f(.5+direction, .25,  .0001); // ending point of the line

	//right arm
	glVertex3f(0+direction, .5, .0001); // origin of the line
	glVertex3f(-.5+direction, .25, .0001); // ending point of the line

	glEnd( );


	glLoadIdentity();
	//head
	glTranslatef(soldier[count1].X+direction, soldier[count1].Y + .75, -125.0f );
	glutSolidSphere( .25, 10, 10 );


	glLoadIdentity();
	glTranslatef(soldier[count1].X, soldier[count1].Y , -125.0f );


	if(soldier[count1].type == 0) {
		glBegin(GL_LINES);
        	glVertex3f(0, 1, .0001); // origin of the line
        	glVertex3f(1*direction2, 0, .0001); // ending point of the line
                glVertex3f(0, -1, .0001); // origin of the line
                glVertex3f(1*direction2, 0, .0001); // ending point of the line
		glEnd( );

	}else if(soldier[count1].type == 1) {
		glBegin(GL_LINES);
                glVertex3f(1, 0, .0001); // origin of the line
                glVertex3f(-1, 0, .0001); // ending point of the line
		glEnd( );

	}else{
		glBegin(GL_LINES);
                glVertex3f(0, 0, .0001); // origin of the line
                glVertex3f(1*direction2, 1, .0001); // ending point of the line
		glEnd( );

	}



/*
//glPushMatrix();

//glViewport
        glLoadIdentity();
        //head
//glRotatef(10.0f,100.0f,50.0f,50.0f);
//glScalef(1,1,1);
//num3=1;
//num4=1;
//num5=1;
num1=10;
       
 glTranslatef(5.0, 5.0, -150.0 );

//glRotatef(90.0, 1, 1, 1);

//glScalef(num3,num4,num5);

 glutWireSphere( num1, 30, 30 );

//glPopMatrix();
*/

/*
        glLoadIdentity();
        //head
        glTranslatef(-5, -5, -10.0f );
        glutSolidSphere( 5, 10, 10 );

        glLoadIdentity();
        //head
        glTranslatef(5, -5, -10.0f );
        glutSolidSphere( 5, 10, 10 );

        glLoadIdentity();
        //head
        glTranslatef(15, -15, -10.0f );
        glutSolidSphere( 5, 10, 10 );
*/
}


}

