X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fshared%2Fmapdef_impl.inc;h=14723af4508795d703c472711a0d8898993787db;hp=1b85d7beae23bcc169951270735671ce20be8420;hb=9783b17e63c73acf68388c661a34accccd9a1d7a;hpb=f1c498dd1ce66077d3140b0958176be31a44e018 diff --git a/src/shared/mapdef_impl.inc b/src/shared/mapdef_impl.inc index 1b85d7b..14723af 100644 --- a/src/shared/mapdef_impl.inc +++ b/src/shared/mapdef_impl.inc @@ -86,7 +86,7 @@ function TDynRecordHelper.trigHealMax (): Boolean; inline; begin result := (getF // TRIGGER_SHOT function TDynRecordHelper.trigShotType (): Byte; inline; begin result := Byte(getFieldWithType('type', TDynField.TType.TUByte).ival); end; function TDynRecordHelper.trigShotTarget (): Byte; inline; begin result := Byte(getFieldWithType('target', TDynField.TType.TUByte).ival); end; -function TDynRecordHelper.trigQuiet (): Boolean; inline; begin result := (getFieldWithType('quiet', TDynField.TType.TBool).ival = 0); end; +function TDynRecordHelper.trigShotSound (): Boolean; inline; begin result := (getFieldWithType('sound', TDynField.TType.TBool).ival = 0); end; function TDynRecordHelper.trigAim (): SmallInt; inline; begin result := ShortInt(getFieldWithType('aim', TDynField.TType.TByte).ival); end; function TDynRecordHelper.trigSight (): Word; inline; begin result := Word(getFieldWithType('sight', TDynField.TType.TUShort).ival); end; function TDynRecordHelper.trigAccuracy (): Word; inline; begin result := Word(getFieldWithType('accuracy', TDynField.TType.TUShort).ival); end;