mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-03 21:13:42 +00:00
Correct the argument indices for Source:setCone
This commit is contained in:
parent
61eaf579cd
commit
ec501903d5
|
@ -172,9 +172,9 @@ static int l_lovrSourceSeek(lua_State* L) {
|
||||||
|
|
||||||
static int l_lovrSourceSetCone(lua_State* L) {
|
static int l_lovrSourceSetCone(lua_State* L) {
|
||||||
Source* source = luax_checktype(L, 1, Source);
|
Source* source = luax_checktype(L, 1, Source);
|
||||||
float innerAngle = luax_checkfloat(L, 1);
|
float innerAngle = luax_checkfloat(L, 2);
|
||||||
float outerAngle = luax_checkfloat(L, 2);
|
float outerAngle = luax_checkfloat(L, 3);
|
||||||
float outerGain = luax_checkfloat(L, 3);
|
float outerGain = luax_checkfloat(L, 4);
|
||||||
lovrSourceSetCone(source, innerAngle, outerAngle, outerGain);
|
lovrSourceSetCone(source, innerAngle, outerAngle, outerGain);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue