Mercurial > mm7
changeset 2011:0449821c27e7
Merge
author | Ritor1 |
---|---|
date | Sun, 10 Nov 2013 21:13:36 +0600 |
parents | 37f42cfc881d (current diff) 3fb1101e5805 (diff) |
children | f39f27b08908 |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/AudioPlayer.cpp Sun Nov 10 21:13:29 2013 +0600 +++ b/AudioPlayer.cpp Sun Nov 10 21:13:36 2013 +0600 @@ -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];