mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-20 11:55:02 +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
|
||||
}
|
||||
|
||||
#if defined(BBGE_BUILD_WINDOWS)
|
||||
static void StartAQConfig()
|
||||
{
|
||||
#if defined(BBGE_BUILD_WINDOWS)
|
||||
if (!exists("ran", false, true))
|
||||
{
|
||||
MakeRan();
|
||||
|
@ -53,8 +53,8 @@ static void StartAQConfig()
|
|||
}
|
||||
}
|
||||
remove("ran");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
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 float sqrRadius = radius * radius;
|
||||
float distsq;
|
||||
float distsq = 0;
|
||||
const bool skipRadiusCheck = radius <= 0;
|
||||
size_t added = 0;
|
||||
for(Shot::Shots::iterator it = Shot::shots.begin(); it != Shot::shots.end(); ++it)
|
||||
|
|
|
@ -155,7 +155,7 @@ void Emitter::onUpdate(float dt)
|
|||
}
|
||||
|
||||
int spawnCount;
|
||||
float spawnPerc;
|
||||
float spawnPerc = 0;
|
||||
if (data.justOne)
|
||||
{
|
||||
if (data.didOne)
|
||||
|
|
Loading…
Add table
Reference in a new issue