commit:539553f99f2f726deaac48e162e28122ca689978
author:Chip Black
committer:Chip Black
date:Tue Jul 8 01:07:51 2008 -0500
parents:ef2a7ea80f8f3ba6c1c9e05cf757c3412e3e5f16
Formatting cleanup on GL floats
diff --git a/Sprite.py b/Sprite.py
line changes: +4/-4
index c767565..17a4041
--- a/Sprite.py
+++ b/Sprite.py
@@ -177,15 +177,15 @@ class Sprite:
 				self.frameno = (self.frameno + int(dt / self.anim_period)) % len(self.frames)
 				self.anim_t = now
 		glPushMatrix()
-		glTranslatef(pos[0], pos[1], 0)
+		glTranslatef(pos[0], pos[1], 0.0)
 		if self.rotation != 0:
-			glRotatef(self.rotation, 0, 0, -1)
+			glRotatef(self.rotation, 0.0, 0.0, -1.0)
 		if self.scale != 1.0:
 			glScalef(self.scale, self.scale, 1.0)
 		glCallList(self.displaylists[self.frameno])
 		if self.showup:
 			glDisable(GL_TEXTURE_2D)
-			glColor3f(0.0,0.0,1.0)
+			glColor3f(0.0, 0.0, 1.0)
 			glBegin(GL_TRIANGLES)
 			glVertex(-5, 0, 0)
 			glVertex(0, 20, 0)
@@ -194,7 +194,7 @@ class Sprite:
 		glPopMatrix()
 		if self.showhitbox:
 			glDisable(GL_TEXTURE_2D)
-			glColor3f(1.0,1.0,1.0)
+			glColor3f(1.0, 1.0, 1.0)
 			glBegin(GL_LINE_LOOP)
 			glVertex(self.hitbox.left, self.hitbox.bottom, 0)
 			glVertex(self.hitbox.left, self.hitbox.top, 0)