mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-28 19:23:53 +00:00
work around dev warning message; fix compiler warning
This commit is contained in:
parent
1acad1069e
commit
3a96c775db
5 changed files with 7 additions and 7 deletions
|
@ -272,7 +272,7 @@ void AquariaComboBox::close(float t)
|
|||
}
|
||||
|
||||
if (t>0)
|
||||
dsq->run(t);
|
||||
dsq->run(t, true);
|
||||
|
||||
for(size_t i = 0; i < shownItems.size(); i++)
|
||||
{
|
||||
|
|
|
@ -3617,9 +3617,9 @@ bool DSQ::isQuitFlag()
|
|||
return watchQuitFlag;
|
||||
}
|
||||
|
||||
void DSQ::run(float runTime /* = -1 */)
|
||||
void DSQ::run(float runTime /* = -1 */, bool skipRecurseCheck)
|
||||
{
|
||||
if(isDeveloperKeys() && isNested())
|
||||
if(isDeveloperKeys() && isNested() && !skipRecurseCheck)
|
||||
errorLog("Warning: Nesting recursive main()");
|
||||
|
||||
Core::run(runTime);
|
||||
|
|
|
@ -353,7 +353,7 @@ public:
|
|||
void rumble(float leftMotor, float rightMotor, float time, int source, InputDevice device);
|
||||
void vision(std::string folder, int num, bool ignoreMusic = false);
|
||||
|
||||
void run(float runTime = -1); // same as Core::run() but with recursion check
|
||||
void run(float runTime = -1, bool skipRecurseCheck = false); // same as Core::run() but with recursion check
|
||||
void watch(float t, int canQuit = 0);
|
||||
|
||||
std::string lastVoiceFile;
|
||||
|
|
|
@ -7878,8 +7878,8 @@ static size_t _entityFilterT(lua_State *L, F& func)
|
|||
const Entity *ignore = lua_isuserdata(L, 4) ? entity(L, 4) : NULL;
|
||||
const EntityType et = lua_isnumber(L, 5) ? (EntityType)lua_tointeger(L, 5) : ET_NOTYPE;
|
||||
const DamageType dt = lua_isnumber(L, 6) ? (DamageType)lua_tointeger(L, 6) : DT_NONE;
|
||||
const unsigned lrStart = lua_isnumber(L, 7) ? lua_tointeger(L, 7) : -1;
|
||||
const unsigned lrEnd = lua_isnumber(L, 8) ? lua_tointeger(L, 8) : -1;
|
||||
const int lrStart = lua_isnumber(L, 7) ? lua_tointeger(L, 7) : -1;
|
||||
const int lrEnd = lua_isnumber(L, 8) ? lua_tointeger(L, 8) : -1;
|
||||
|
||||
const float sqrRadius = radius * radius;
|
||||
float distsq;
|
||||
|
|
|
@ -529,7 +529,7 @@ protected:
|
|||
void setupFileAccess();
|
||||
std::string _extraDataDir;
|
||||
|
||||
std::vector<ActionButtonStatus*> actionStatus;
|
||||
std::vector<ActionButtonStatus*> actionStatus; // contains at least 1 element (the sentinel)
|
||||
virtual void updateActionButtons();
|
||||
void clearActionButtons();
|
||||
|
||||
|
|
Loading…
Reference in a new issue