Skip to content

Commit

Permalink
Merge pull request #333 from capnlove/AlxGetListener3f_FIX
Browse files Browse the repository at this point in the history
Fixed alGetListener3f and alGetSource3f
  • Loading branch information
greenfire27 committed Mar 7, 2016
2 parents 513bf5d + e18587f commit 88a43b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/source/audio/audio_ScriptBinding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ ConsoleFunctionWithDocs(alxGetSourcef, ConsoleFloat, 3, 3, ( handle , ALEnum ))
*/
ConsoleFunctionWithDocs(alxGetSource3f, ConsoleString, 3, 3, ( handle , ALEnum ))
{
ALenum e = getEnum(argv[2], (Source|Get|Float));
ALenum e = getEnum(argv[2], (Source|Get|Float3));
if(e == AL_INVALID)
{
Con::errorf(ConsoleLogEntry::General, "cAudio_alxGetSource3f: invalid enum name '%s'", argv[2]);
Expand Down Expand Up @@ -630,7 +630,7 @@ ConsoleFunctionWithDocs(alxGetListenerf, ConsoleFloat, 2, 2, ( ALEnum ))
*/
ConsoleFunctionWithDocs(alGetListener3f, ConsoleString, 2, 2, ( ALEnum ))
{
ALenum e = getEnum(argv[2], (Source|Get|Float));
ALenum e = getEnum(argv[1], (Source|Get|Float3));
if(e == AL_INVALID)
{
Con::errorf(ConsoleLogEntry::General, "alGetListener3f: invalid enum name '%s'", argv[1]);
Expand All @@ -641,7 +641,7 @@ ConsoleFunctionWithDocs(alGetListener3f, ConsoleString, 2, 2, ( ALEnum ))
alxGetListenerPoint3F(e, &v);

char * ret = Con::getReturnBuffer(64);
dSprintf(ret, 64, "%7.3f %7.3 %7.3", v.x, v.y, v.z);
dSprintf(ret, 64, "%7.3f %7.3f %7.3f", v.x, v.y, v.z);
return(ret);
}

Expand Down

0 comments on commit 88a43b5

Please sign in to comment.