mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-21 12:35:04 +00:00
Fix some warnings discovered via Clang/Xcode.
This commit is contained in:
parent
e3defdc1c0
commit
027d66f9d0
3 changed files with 4 additions and 4 deletions
|
@ -40,9 +40,9 @@ static void MakeRan(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(BBGE_BUILD_WINDOWS)
|
||||||
static void StartAQConfig()
|
static void StartAQConfig()
|
||||||
{
|
{
|
||||||
#if defined(BBGE_BUILD_WINDOWS)
|
|
||||||
if (!exists("ran", false, true))
|
if (!exists("ran", false, true))
|
||||||
{
|
{
|
||||||
MakeRan();
|
MakeRan();
|
||||||
|
@ -53,8 +53,8 @@ static void StartAQConfig()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
remove("ran");
|
remove("ran");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void CheckConfig(void)
|
static void CheckConfig(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2426,7 +2426,7 @@ static size_t _shotFilter(lua_State *L)
|
||||||
const DamageType dt = lua_isnumber(L, 5) ? (DamageType)lua_tointeger(L, 5) : DT_NONE;
|
const DamageType dt = lua_isnumber(L, 5) ? (DamageType)lua_tointeger(L, 5) : DT_NONE;
|
||||||
|
|
||||||
const float sqrRadius = radius * radius;
|
const float sqrRadius = radius * radius;
|
||||||
float distsq;
|
float distsq = 0;
|
||||||
const bool skipRadiusCheck = radius <= 0;
|
const bool skipRadiusCheck = radius <= 0;
|
||||||
size_t added = 0;
|
size_t added = 0;
|
||||||
for(Shot::Shots::iterator it = Shot::shots.begin(); it != Shot::shots.end(); ++it)
|
for(Shot::Shots::iterator it = Shot::shots.begin(); it != Shot::shots.end(); ++it)
|
||||||
|
|
|
@ -155,7 +155,7 @@ void Emitter::onUpdate(float dt)
|
||||||
}
|
}
|
||||||
|
|
||||||
int spawnCount;
|
int spawnCount;
|
||||||
float spawnPerc;
|
float spawnPerc = 0;
|
||||||
if (data.justOne)
|
if (data.justOne)
|
||||||
{
|
{
|
||||||
if (data.didOne)
|
if (data.didOne)
|
||||||
|
|
Loading…
Add table
Reference in a new issue