hedgewars/uScript.pas
changeset 7889 57b117d441b9
parent 7887 e987dff8e5f2
child 7996 66e8ac9c2274
--- a/hedgewars/uScript.pas	Mon Oct 29 17:38:54 2012 -0400
+++ b/hedgewars/uScript.pas	Mon Oct 29 18:20:08 2012 -0400
@@ -1669,6 +1669,7 @@
         if (gear <> nil) and (gear^.Kind = gtHedgehog) and (gear^.Hedgehog <> nil) then
             hat:= lua_tostring(L, 2);
             gear^.Hedgehog^.Hat:= hat;
+AddFileLog('Changed hat to: '+hat);
             if (Length(hat) > 39) and (Copy(hat,1,8) = 'Reserved') and (Copy(hat,9,32) = gear^.Hedgehog^.Team^.PlayerHash) then
                 LoadHedgehogHat(gear^.Hedgehog^, 'Reserved/' + Copy(hat,9,Length(hat)-8))
             else