rename of variable typo for readability
authornemo
Sun, 24 Aug 2014 15:18:26 -0400
changeset 10397 314164a9c912
parent 10396 77ff1db6d6e4
child 10398 d9cf9ef08ba7
rename of variable typo for readability
hedgewars/uTeams.pas
hedgewars/uTypes.pas
--- a/hedgewars/uTeams.pas	Sun Aug 24 14:51:11 2014 -0400
+++ b/hedgewars/uTeams.pas	Sun Aug 24 15:18:26 2014 -0400
@@ -653,29 +653,29 @@
     if (t = cMaxTeams) or (TeamsArray[t] = nil) then
         exit;
 
-    TeamsArray[t]^.isGoneFlagPengingToBeSet:= true;
+    TeamsArray[t]^.isGoneFlagPendingToBeSet:= true;
 
     if isSynced then
     begin
     for i:= 0 to Pred(cMaxTeams) do
         with TeamsArray[i]^ do
             begin
-            if (not hasGone) and isGoneFlagPengingToBeSet then
+            if (not hasGone) and isGoneFlagPendingToBeSet then
                 begin
                 AddChatString('** '+ TeamName + ' is gone'); // TODO: localize
                 if not CurrentTeam^.ExtDriven then SendIPC(_S'f' + s);
                 hasGone:= true;
                 skippedTurns:= 0;
-                isGoneFlagPengingToBeSet:= false;
+                isGoneFlagPendingToBeSet:= false;
                 RecountTeamHealth(TeamsArray[i])
                 end;
-            if hasGone and isGoneFlagPengingToBeUnset then
+            if hasGone and isGoneFlagPendingToBeUnset then
                 ParseCommand('/teamback s' + s, true);
             end;
     end
     else
     begin
-        TeamsArray[t]^.isGoneFlagPengingToBeSet:= true;
+        TeamsArray[t]^.isGoneFlagPendingToBeSet:= true;
 
         if (not CurrentTeam^.ExtDriven) or (CurrentTeam^.TeamName = s) then
             ParseCommand('/teamgone s' + s, true);
@@ -707,15 +707,15 @@
 
                 RecountTeamHealth(TeamsArray[t]);
 
-                if isGoneFlagPengingToBeUnset and (Owner = UserNick) then
+                if isGoneFlagPendingToBeUnset and (Owner = UserNick) then
                     ExtDriven:= false;
 
-                isGoneFlagPengingToBeUnset:= false;
+                isGoneFlagPendingToBeUnset:= false;
                 end;
         end
     else
     begin
-        TeamsArray[t]^.isGoneFlagPengingToBeUnset:= true;
+        TeamsArray[t]^.isGoneFlagPendingToBeUnset:= true;
 
         if not CurrentTeam^.ExtDriven then
             ParseCommand('/teamback s' + s, true);
--- a/hedgewars/uTypes.pas	Sun Aug 24 14:51:11 2014 -0400
+++ b/hedgewars/uTypes.pas	Sun Aug 24 15:18:26 2014 -0400
@@ -404,7 +404,7 @@
             stats: TTeamStats;
             hasGone: boolean;
             skippedTurns: Longword;
-            isGoneFlagPengingToBeSet, isGoneFlagPengingToBeUnset: boolean;
+            isGoneFlagPendingToBeSet, isGoneFlagPendingToBeUnset: boolean;
             end;
 
     TClan = record