conworlds

diff src/game.cc @ 16:7a2041ddb7e7

fixed line endings
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Aug 2014 18:42:40 +0300
parents 9b0db7dbde6e
children c814f77d177e
line diff
     1.1 --- a/src/game.cc	Sun Aug 24 14:36:00 2014 +0300
     1.2 +++ b/src/game.cc	Sun Aug 24 18:42:40 2014 +0300
     1.3 @@ -340,12 +340,12 @@
     1.4  }
     1.5  
     1.6  static void draw_pyramid(float basesz, float height)
     1.7 -{
     1.8 -	float hsz = basesz / 2.0;
     1.9 -	float theta = atan(hsz / height);
    1.10 -	float nx = cos(theta);
    1.11 -	float ny = sin(theta);
    1.12 -
    1.13 +{
    1.14 +	float hsz = basesz / 2.0;
    1.15 +	float theta = atan(hsz / height);
    1.16 +	float nx = cos(theta);
    1.17 +	float ny = sin(theta);
    1.18 +
    1.19  	glBegin(GL_TRIANGLES);
    1.20  	glNormal3f(0, ny, nx);
    1.21  	glVertex3f(-hsz, 0, hsz);
    1.22 @@ -364,4 +364,4 @@
    1.23  	glVertex3f(-hsz, 0, hsz);
    1.24  	glVertex3f(0, height, 0);
    1.25  	glEnd();
    1.26 -}
    1.27 \ No newline at end of file
    1.28 +}