1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-27 08:34:02 +00:00

Set positional sound position early

This commit is contained in:
fgenesis 2014-04-15 21:39:32 +02:00
parent 0b4e6854f7
commit a0c53a488f

View file

@ -3008,6 +3008,9 @@ luaFunc(entity_playSfx)
sfx.maxdist = lua_tonumber(L, 7);
sfx.relative = false;
sfx.positional = true;
Vector pos = e->position + e->offset;
sfx.x = pos.x;
sfx.y = pos.y;
h = core->sound->playSfx(sfx);
if (fadeOut != 0)