Hedgehogs on the left side of the map look to the right and vice-versa
authorunc0rr
Tue, 17 Jun 2008 18:45:21 +0000
changeset 1000 e7b204880318
parent 999 8dcf263c9e8f
child 1001 502508979713
Hedgehogs on the left side of the map look to the right and vice-versa
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Tue Jun 17 18:10:15 2008 +0000
+++ b/hedgewars/uGears.pas	Tue Jun 17 18:45:21 2008 +0000
@@ -1082,6 +1082,7 @@
 		begin
 		i:= GetRandom(Count);
 		FindPlace(ar[i], false, 0, 2048);
+		ar[i]^.dX.isNegative:= ar[i]^.X > _1024;
 		ar[i]^.Pos:= GetRandom(19);
 		ar[i]:= ar[Count - 1];
 		dec(Count)