hedgewars/uGearsHandlersMess.pas
changeset 14403 87562a68c41f
parent 14363 1f87c7c2b151
child 14519 5ac181cb2396
--- a/hedgewars/uGearsHandlersMess.pas	Sun Dec 09 22:28:46 2018 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Mon Dec 10 02:30:14 2018 +0100
@@ -6023,6 +6023,8 @@
                 RenderHealth(resgear^.Hedgehog^);
                 RecountTeamHealth(resgear^.Hedgehog^.Team);
                 resgear^.Hedgehog^.Effects[heResurrected]:= 1;
+                if resgear^.Hedgehog^.King then
+                    resgear^.Hedgehog^.Team^.hasKing:= true;
                 { Reviving a hog implies its clan is now alive, too. }
                 resgear^.Hedgehog^.Team^.Clan^.DeathLogged:= false;
                 s:= ansistring(resgear^.Hedgehog^.Name);