hedgewars/hwengine.pas
changeset 2735 f2008d0ce3f8
parent 2723 eaa6ac1e95ea
child 2743 39d097ac2276
--- a/hedgewars/hwengine.pas	Sun Jan 31 22:43:09 2010 +0000
+++ b/hedgewars/hwengine.pas	Sun Jan 31 22:52:42 2010 +0000
@@ -57,6 +57,8 @@
 	uLandTexture in 'uLandTexture.pas'
 	{$IFDEF IPHONEOS}
 	, PascalExports in 'PascalExports.pas'
+	{$ELSE}
+	, sysutils
 	{$ENDIF}
 	;
 
@@ -141,8 +143,8 @@
 	if flagMakeCapture then
 	begin
 		flagMakeCapture:= false;
-		s:= 'hw_' + cSeed + '_' + inttostr(GameTicks) + '.tga';
-		WriteLnToConsole('Saving ' + s);
+		s:= 'hw_' + FormatDateTime('YYYY-MM-DD_HH-mm-ss', Now()) + inttostr(GameTicks);
+		WriteLnToConsole('Saving ' + s + '...');
 		MakeScreenshot(s);
 		//SDL_SaveBMP_RW(SDLPrimSurface, SDL_RWFromFile(Str2PChar(s), 'wb'), 1)
 	end;