Source directivity power defaults to 1;

This commit is contained in:
bjorn 2021-04-03 11:22:23 -06:00
parent 15975343ea
commit d32d9f6d67
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ static int l_lovrSourceGetDirectivity(lua_State* L) {
static int l_lovrSourceSetDirectivity(lua_State* L) {
Source* source = luax_checktype(L, 1, Source);
float weight = luax_optfloat(L, 2, 0.f);
float power = luax_optfloat(L, 3, 0.f);
float power = luax_optfloat(L, 3, 1.f);
lovrSourceSetDirectivity(source, weight, power);
return 0;
}