Mercurial > mm7
changeset 2009:3fb1101e5805
fixing sprite sounds not playing
author | Grumpy7 |
---|---|
date | Sun, 10 Nov 2013 02:18:32 -0800 |
parents | 591024ad7269 |
children | 0449821c27e7 |
files | AudioPlayer.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/AudioPlayer.cpp Sat Nov 09 00:15:18 2013 +0600 +++ b/AudioPlayer.cpp Sun Nov 10 02:18:32 2013 -0800 @@ -1677,9 +1677,9 @@ //v46 = abs(v44->vPosition.y - pParty->vPosition.y); //v47 = abs(v44->vPosition.x - pParty->vPosition.x); LevelDecoration* decor = &pLevelDecorations[_6807B8_level_decorations_ids[i]]; - if (int_get_vector_length(decor->vPosition.x - pParty->vPosition.x, - decor->vPosition.y - pParty->vPosition.y, - decor->vPosition.z - pParty->vPosition.z) > 8192) + if (int_get_vector_length(abs(decor->vPosition.x - pParty->vPosition.x), + abs(decor->vPosition.y - pParty->vPosition.y), + abs(decor->vPosition.z - pParty->vPosition.z)) > 8192) continue; DecorationDesc* decor_desc = &pDecorationList->pDecorations[decor->uDecorationDescID];