More warning cleanup - converted certain class functions to return bool instead of int where appropriate. Also fixed the sdl update() tickCount assignment that I just broke in my last checkin.

This commit is contained in:
wrenczes@gmail.com
2011-06-02 07:01:42 +00:00
parent 90b1058ad5
commit 5b8ecd0cf7
5 changed files with 45 additions and 37 deletions
+4 -5
View File
@@ -38,25 +38,24 @@ int ActionLayer::removeFromGame(ActionElement * e)
}
int ActionLayer::moveToGarbage(ActionElement * e)
bool ActionLayer::moveToGarbage(ActionElement * e)
{
if (removeFromGame(e))
{
garbage.push_back(e);
return 1;
return true;
}
return 0;
return false;
}
int ActionLayer::cleanGarbage()
void ActionLayer::cleanGarbage()
{
for (size_t i = 0; i < garbage.size(); ++i)
{
delete (garbage[i]);
}
garbage.clear();
return 1;
}
int ActionLayer::reactToClick(ActionElement * ability, MTGCardInstance * card)