hedgewars/uScript.pas
branch0.9.18
changeset 7890 7f3881b14a3f
parent 7888 65b2d4e1b8b6
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