remove Wuzzy's val checking, add a FIXME to add that to the C implementation
authornemo
Wed, 02 Jan 2019 11:06:34 -0500
changeset 14515 bcb418530a1c
parent 14514 64d73515abba
child 14516 3e6b12d23957
remove Wuzzy's val checking, add a FIXME to add that to the C implementation
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Wed Jan 02 03:30:54 2019 +0100
+++ b/hedgewars/uTeams.pas	Wed Jan 02 11:06:34 2019 -0500
@@ -799,6 +799,7 @@
                     // Number found: Increment it by 1
                     begin
                     tail:= Copy(chTeam^.TeamName, Length(chTeam^.TeamName) - numLen + 1, numLen);
+(* FIXME - pas2c missing 3rd param for val
                     valOK:= 1;
                     Val(tail, numTail, valOK);
                     Inc(numTail);
@@ -806,7 +807,11 @@
                         tail:= IntToStr(numTail)
                     else
                         // This should not happen
-                        tail:= 'X';
+                        tail:= shortstring('X');
+*)
+                    Val(tail, numTail);
+                    Inc(numTail);
+                    tail:= IntToStr(numTail)
                     chTeam^.TeamName:= Copy(chTeam^.TeamName, 0, Length(chTeam^.TeamName) - numLen) + tail;
                     end
                 else