Minor tweak, try to make long flavour text last longer, move the hurt self messages to unused messages group, so they don't get wiped by crate an instant later.
authornemo
Sun, 24 Jan 2010 16:46:06 +0000
changeset 2712 8f4527c9137c
parent 2711 e90b4e189be9
child 2713 71250942e95b
Minor tweak, try to make long flavour text last longer, move the hurt self messages to unused messages group, so they don't get wiped by crate an instant later.
hedgewars/uStats.pas
hedgewars/uWorld.pas
--- a/hedgewars/uStats.pas	Sun Jan 24 16:39:09 2010 +0000
+++ b/hedgewars/uStats.pas	Sun Jan 24 16:46:06 2010 +0000
@@ -110,7 +110,7 @@
 	else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
 		begin
 		PlaySound(sndStupid, false, PreviousTeam^.voicepack);
-		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
+		if DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpMessage);
 		end
 	else if DamageClan <> 0 then
 		if DamageTotal > DamageClan then
@@ -136,7 +136,7 @@
 	else if isTurnSkipped then
 		begin
 		PlaySound(sndBoring, false, PreviousTeam^.voicepack);
-		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), cWhiteColor, capgrpGameState);
+		AddCaption(Format(GetEventString(eidTurnSkipped), CurrentHedgehog^.Name), cWhiteColor, capgrpMessage);
 		end
 	else
 		PlaySound(sndCoward, false, PreviousTeam^.voicepack);
--- a/hedgewars/uWorld.pas	Sun Jan 24 16:39:09 2010 +0000
+++ b/hedgewars/uWorld.pas	Sun Jan 24 16:46:06 2010 +0000
@@ -649,7 +649,7 @@
 case Group of
 	capgrpGameState: Captions[Group].EndTime:= RealTicks + 2200
 	else
-	Captions[Group].EndTime:= RealTicks + 1570
+	Captions[Group].EndTime:= RealTicks + 1400 + Captions[Group].Tex^.w*3;
 	end;
 end;