hedgewars/uStore.pas
changeset 1865 ebc6dfca60d4
parent 1854 6e05013899b2
child 1896 fdacad5d0acc
--- a/hedgewars/uStore.pas	Fri Mar 06 13:50:40 2009 +0000
+++ b/hedgewars/uStore.pas	Sat Mar 07 17:42:54 2009 +0000
@@ -35,7 +35,7 @@
 procedure DrawRotatedTex(Tex: PTexture; hw, hh, X, Y, Dir: LongInt; Angle: real);
 procedure DrawCentered(X, Top: LongInt; Source: PTexture);
 procedure DrawFromRect(X, Y: LongInt; r: PSDL_Rect; SourceTexture: PTexture);
-procedure DrawHedgehog(X, Y: LongInt; Dir: LongInt; Pos, Step: LongWord; Angle: real; Invulnerable: boolean);
+procedure DrawHedgehog(X, Y: LongInt; Dir: LongInt; Pos, Step: LongWord; Angle: real);
 procedure DrawFillRect(r: TSDL_Rect);
 function  RenderStringTex(s: string; Color: Longword; font: THWFont): PTexture;
 procedure RenderHealth(var Hedgehog: THedgehog);
@@ -496,7 +496,7 @@
 DrawTexture(X - Source^.w div 2, Top, Source)
 end;
 
-procedure DrawHedgehog(X, Y: LongInt; Dir: LongInt; Pos, Step: LongWord; Angle: real; Invulnerable: boolean);
+procedure DrawHedgehog(X, Y: LongInt; Dir: LongInt; Pos, Step: LongWord; Angle: real);
 var l, r, t, b: real;
 begin
 
@@ -522,9 +522,6 @@
 
 glBegin(GL_QUADS);
 
-if Invulnerable then // twiddling the channels a bit. perhaps a pixmap or something would be better.
-    glColor4ub($CC, $FF, $0, $C0);
-
 glTexCoord2f(l, t);
 glVertex2i(-16, -16);