mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Prettied up some code.
This commit is contained in:
@@ -43,26 +43,17 @@ Volatile::~Volatile()
|
||||
bool Volatile::loadAll()
|
||||
{
|
||||
bool success = true;
|
||||
std::list<Volatile *>::iterator i = all.begin();
|
||||
|
||||
while (i != all.end())
|
||||
{
|
||||
success = success && (*i)->loadVolatile();
|
||||
i++;
|
||||
}
|
||||
for (Volatile *v : all)
|
||||
success = success && v->loadVolatile();
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
void Volatile::unloadAll()
|
||||
{
|
||||
std::list<Volatile *>::iterator i = all.begin();
|
||||
|
||||
while (i != all.end())
|
||||
{
|
||||
(*i)->unloadVolatile();
|
||||
i++;
|
||||
}
|
||||
for (Volatile *v : all)
|
||||
v->unloadVolatile();
|
||||
}
|
||||
|
||||
} // graphics
|
||||
|
||||
Reference in New Issue
Block a user