# HG changeset patch # User Wuzzy # Date 1559001522 -7200 # Node ID 57f7d89067ef59245970f924e29e9d69a6c3a2f4 # Parent e16f906224fd58ea0c1f96ee68d3f39e5bdb4f98 Use crown icon in mission panel for King Mode diff -r e16f906224fd -r 57f7d89067ef hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Tue May 28 01:28:59 2019 +0200 +++ b/hedgewars/uWorld.pas Tue May 28 01:58:42 2019 +0200 @@ -189,10 +189,10 @@ g:= LuaGoals + '|'; // check different game flags -g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement? g:= AddGoal(g, gfKing, gidKing); // king? if ((GameFlags and gfKing) <> 0) and ((GameFlags and gfPlaceHog) = 0) then g:= AddGoal(g, gfAny, gidPlaceKing); +g:= AddGoal(g, gfPlaceHog, gidPlaceHog); // placement? g:= AddGoal(g, gfTagTeam, gidTagTeam); // tag team mode? g:= AddGoal(g, gfSharedAmmo, gidSharedAmmo); // shared ammo? g:= AddGoal(g, gfPerHogAmmo, gidPerHogAmmo); @@ -230,7 +230,13 @@ // if the string has been set, show it for (default timeframe) seconds if length(g) > 0 then - ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0); + // choose icon + if ((GameFlags and gfKing) <> 0) then + // crown icon for King Mode + ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 0, 0) + else + // target icon for anything else + ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0); //cWaveWidth:= SpritesData[sprWater].Width; //cWaveHeight:= SpritesData[sprWater].Height;