--- a/hedgewars/uStats.pas Sun Jan 19 00:18:28 2014 +0400
+++ b/hedgewars/uStats.pas Tue Jan 21 22:38:13 2014 +0100
@@ -25,7 +25,7 @@
var TotalRounds: LongInt;
FinishedTurnsTotal: LongInt;
SendHealthStatsOn : boolean = true;
-
+
procedure initModule;
procedure freeModule;
@@ -111,7 +111,7 @@
else if CurrentHedgehog^.stats.StepDamageRecv > 0 then
begin
AddVoice(sndStupid, PreviousTeam^.voicepack);
- if CurrentHedgehog^.stats.DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then
+ if CurrentHedgehog^.stats.DamageGiven = CurrentHedgehog^.stats.StepDamageRecv then
AddCaption(Format(GetEventString(eidHurtSelf), CurrentHedgehog^.Name), cWhiteColor, capgrpMessage);
end
@@ -164,7 +164,7 @@
StepDamageRecv:= 0;
StepDamageGiven:= 0
end;
-
+
if SendHealthStatsOn then
for t:= 0 to Pred(ClansCount) do
with ClansArray[t]^ do
@@ -298,7 +298,7 @@
SendStat(siKilledHHs, IntToStr(KilledHHs));
// now to console
- if winnersClan <> nil then
+ if winnersClan <> nil then
begin
WriteLnToConsole('WINNERS');
WriteLnToConsole(inttostr(winnersClan^.TeamsNumber));
@@ -307,12 +307,12 @@
end
else
WriteLnToConsole('DRAW');
-
+
ScriptCall('onAchievementsDeclaration');
end;
procedure declareAchievement(id, teamname, location: shortstring; value: LongInt);
-begin
+begin
if (length(id) = 0) or (length(teamname) = 0) or (length(location) = 0) then exit;
WriteLnToConsole('ACHIEVEMENT');
WriteLnToConsole(id);