hedgewars/uIO.pas
changeset 7628 bc7b1d228a2c
parent 7201 dc17ffdf0702
parent 7442 9bb6abdb5675
child 8003 7d8bce524daf
--- a/hedgewars/uIO.pas	Thu Aug 30 12:47:41 2012 -0400
+++ b/hedgewars/uIO.pas	Thu Aug 30 13:02:19 2012 -0400
@@ -126,6 +126,7 @@
                'D': GameType:= gmtDemo;
                'N': GameType:= gmtNet;
                'S': GameType:= gmtSave;
+               'V': GameType:= gmtRecord;
                else OutError(errmsgIncorrectUse + ' IPC "T" :' + s[2], true) end;
      'V': begin
               if s[2] = '.' then
@@ -406,7 +407,7 @@
             TargetPoint.Y:= putY
             end;
         AddFileLog('put: ' + inttostr(TargetPoint.X) + ', ' + inttostr(TargetPoint.Y));
-        State:= State and not gstHHChooseTarget;
+        State:= State and (not gstHHChooseTarget);
         if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackingPut) <> 0 then
             Message:= Message or (gmAttack and InputMask);
         end