From 53899121bfcca7400a3d3aeea53b04696121fdc9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 May 2009 23:08:29 +0000 Subject: [PATCH] - fixed: bouncing sounds were limited to inventory items. SVN r1623 (trunk) --- src/thingdef/thingdef_properties.cpp | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/thingdef/thingdef_properties.cpp b/src/thingdef/thingdef_properties.cpp index 1416b0adc..921ec099c 100644 --- a/src/thingdef/thingdef_properties.cpp +++ b/src/thingdef/thingdef_properties.cpp @@ -487,6 +487,24 @@ DEFINE_PROPERTY(attacksound, S, Actor) defaults->AttackSound = str; } +//========================================================================== +// +//========================================================================== +DEFINE_PROPERTY(bouncesound, S, Actor) +{ + PROP_STRING_PARM(str, 0); + defaults->BounceSound = str; +} + +//========================================================================== +// +//========================================================================== +DEFINE_PROPERTY(wallbouncesound, S, Actor) +{ + PROP_STRING_PARM(str, 0); + defaults->WallBounceSound = str; +} + //========================================================================== // //========================================================================== @@ -1253,24 +1271,6 @@ DEFINE_CLASS_PROPERTY(usesound, S, Inventory) defaults->UseSound = str; } -//========================================================================== -// -//========================================================================== -DEFINE_CLASS_PROPERTY(bouncesound, S, Inventory) -{ - PROP_STRING_PARM(str, 0); - defaults->BounceSound = str; -} - -//========================================================================== -// -//========================================================================== -DEFINE_CLASS_PROPERTY(wallbouncesound, S, Inventory) -{ - PROP_STRING_PARM(str, 0); - defaults->WallBounceSound = str; -} - //========================================================================== // //==========================================================================