mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
Use vertical sound position with full_sounds
(#1144)
3D sound requires `source->info->actualheight` to calculate vertical position.
This commit is contained in:
parent
8cc12f6680
commit
e0601f00fd
@ -49,7 +49,7 @@ typedef struct channel_s
|
||||
// the set of channels available
|
||||
static channel_t channels[MAX_CHANNELS];
|
||||
// [FG] removed map objects may finish their sounds
|
||||
static degenmobj_t sobjs[MAX_CHANNELS];
|
||||
static mobj_t sobjs[MAX_CHANNELS];
|
||||
|
||||
// These are not used, but should be (menu).
|
||||
// Maximum volume of a sound effect.
|
||||
@ -332,11 +332,12 @@ void S_UnlinkSound(mobj_t *origin)
|
||||
{
|
||||
if (channels[cnum].sfxinfo && channels[cnum].origin == origin)
|
||||
{
|
||||
degenmobj_t *const sobj = &sobjs[cnum];
|
||||
mobj_t *const sobj = &sobjs[cnum];
|
||||
sobj->x = origin->x;
|
||||
sobj->y = origin->y;
|
||||
sobj->z = origin->z;
|
||||
channels[cnum].origin = (mobj_t *) sobj;
|
||||
sobj->info = origin->info;
|
||||
channels[cnum].origin = sobj;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user