mirror of
https://github.com/love2d/love.git
synced 2026-08-21 21:15:09 +02:00
Minor code style cleanup. Fix a couple compiler warnings.
--HG-- branch : minor
This commit is contained in:
@@ -96,6 +96,7 @@ bool Filter::setParams(Type type, const std::vector<float> ¶ms)
|
||||
case TYPE_MAX_ENUM:
|
||||
break;
|
||||
}
|
||||
|
||||
//failed to make filter specific type - not supported etc.
|
||||
if (alGetError() != AL_NO_ERROR)
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#else
|
||||
#include <OpenAL-Soft/alc.h>
|
||||
#include <OpenAL-Soft/al.h>
|
||||
#include <OpenAL-Soft/alext.h>
|
||||
#endif
|
||||
#else
|
||||
#include <AL/alc.h>
|
||||
|
||||
@@ -347,7 +347,7 @@ int w_Source_setFilter(lua_State *L)
|
||||
else if (lua_gettop(L) > 2)
|
||||
{
|
||||
const char *ftypestr = luaL_checkstring(L, 2);
|
||||
if (ftypestr && !Filter::getConstant(ftypestr, type))
|
||||
if (!Filter::getConstant(ftypestr, type))
|
||||
return luaL_error(L, "Invalid filter type: %s", ftypestr);
|
||||
|
||||
unsigned int count = Filter::getParameterCount(type);
|
||||
@@ -363,7 +363,7 @@ int w_Source_setFilter(lua_State *L)
|
||||
}
|
||||
lua_rawgeti(L, 2, 1);
|
||||
const char *ftypestr = luaL_checkstring(L, -1);
|
||||
if (ftypestr && !Filter::getConstant(ftypestr, type))
|
||||
if (!Filter::getConstant(ftypestr, type))
|
||||
return luaL_error(L, "Invalid filter type: %s", ftypestr);
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user