Just to prevent airmines from stealing camera when they blow up... but really what is needed I think is forcing camera to stay on current hedgehog if you are the active player. either all the time, or at least if you are on rope/saucer.
authornemo
Fri, 12 Jun 2015 17:28:20 -0400
changeset 10993 fd172f166de4
parent 10992 995ecbdf72de
child 10994 cd7f918eed30
Just to prevent airmines from stealing camera when they blow up... but really what is needed I think is forcing camera to stay on current hedgehog if you are the active player. either all the time, or at least if you are on rope/saucer.
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Thu Jun 11 03:31:33 2015 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Jun 12 17:28:20 2015 -0400
@@ -1914,7 +1914,9 @@
                        (hwRound(hwSqr(tX) + hwSqr(tY)) < sqr(Gear^.Karma)) then
                         begin
                         Gear^.Hedgehog:= CurrentHedgehog;
+                        tmpG:= FollowGear;
                         doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), Gear^.Karma, Gear^.Hedgehog, EXPLAutoSound);
+                        FollowGear:= tmpG;
                         DeleteGear(Gear);
                         exit
                         end