hedgewars/uTypes.pas
changeset 10809 bb2e4e9944f7
parent 10792 f6df7d6e18e5
child 10817 48a53259fad8
child 10829 158b5dd6b3c9
--- a/hedgewars/uTypes.pas	Sun Jan 25 14:48:02 2015 -0500
+++ b/hedgewars/uTypes.pas	Sun Jan 25 16:10:20 2015 -0500
@@ -249,7 +249,7 @@
             CollisionIndex: LongInt;    // Position in collision array
             Message: LongWord;          // Game messages are stored here. See gm bitmasks in uConsts
             uid: Longword;              // Lua use this to reference gears
-            Hedgehog: PHedgehog;        // set to CurrentHedgehog on gear creation.  uStats damage code appears to assume it will never be nil and never be changed.
+            Hedgehog: PHedgehog;        // set to CurrentHedgehog on gear creation.  uStats damage code appears to assume it will never be nil and never be changed.  If you override it, make sure it is set to a non-nil PHedgehog before dealing damage.
 // Strongly recommended not to override these.  Will mess up generic operations like portaling
             X : hwFloat;              // X/Y/dX/dY are position/velocity. People count on these having semi-normal values
             Y : hwFloat;