Disable visual gears when quick replaying
authorunc0rr
Sun, 11 Jan 2009 11:03:09 +0000
changeset 1642 177b440773de
parent 1641 70d9945ae4f9
child 1643 434e28245dc0
Disable visual gears when quick replaying
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Sun Jan 11 10:22:41 2009 +0000
+++ b/hedgewars/uVisualGears.pas	Sun Jan 11 11:03:09 2009 +0000
@@ -164,6 +164,13 @@
 	t: Longword;
 	sp: hwFloat;
 begin
+if (GameType = gmtSave) or (fastUntilLag and (GameType = gmtNet)) then // we're scrolling now
+	if Kind <> vgtCloud then
+		begin
+		AddVisualGear:= nil;
+		exit
+		end;
+
 New(Result);
 FillChar(Result^, sizeof(TVisualGear), 0);
 Result^.X:= int2hwFloat(X);