hedgewars/uMisc.pas
changeset 3107 1fa539758c10
parent 3066 5c0efa437728
child 3115 831bd0f7050d
--- a/hedgewars/uMisc.pas	Sat Mar 27 12:05:01 2010 +0000
+++ b/hedgewars/uMisc.pas	Sat Mar 27 14:03:30 2010 +0000
@@ -38,6 +38,7 @@
     isSEBackup      : boolean;
     isInMultiShoot  : boolean;
     isSpeed         : boolean;
+    isFirstFrame    : boolean;
 
     fastUntilLag    : boolean;
 
@@ -126,6 +127,10 @@
 
     TextureList : PTexture;
 
+    ScreenFade : TScreenFade;
+    ScreenFadeValue : Longword;
+    ScreenFadeSpeed : Longword;
+
 
 procedure initModule;
 procedure freeModule;
@@ -554,6 +559,11 @@
 begin
 playSound(sndShutter);
 
+// flash
+ScreenFade:= sfFromWhite;
+ScreenFadeValue:= sfMax;
+ScreenFadeSpeed:= 5;
+
 size:= cScreenWidth * cScreenHeight * 3;
 p:= GetMem(size);
 
@@ -715,6 +725,7 @@
     isInMultiShoot  := false;
     isSpeed         := false;
     fastUntilLag    := false;
+    isFirstFrame    := true;
     cVSyncInUse     := true;    
     isSoundEnabled  := true;
     isSEBackup      := true;
@@ -735,6 +746,8 @@
     cHasFocus       := true;
     cInactDelay     := 1250;
     cAltDamage      := true;
+
+    ScreenFade      := sfNone;
 {$IFDEF DEBUGFILE}
 {$I-}
 {$IFDEF IPHONEOS}