cleaned up code based on feedback from cppcheck

This commit is contained in:
Mark Vejvoda
2013-10-25 05:45:54 +00:00
parent 24cfc243eb
commit ad0fb1d6f7
26 changed files with 87 additions and 114 deletions

View File

@@ -667,8 +667,6 @@ void Intro::render() {
return;
}
int difTime=0;
canRender();
incrementFps();
@@ -686,7 +684,7 @@ void Intro::render() {
for(int i = 0; i < texts.size(); ++i) {
Text *text= texts[i];
difTime= 1000 * timer / GameConstants::updateFps - text->getTime();
int difTime= 1000 * timer / GameConstants::updateFps - text->getTime();
if(difTime > 0 && difTime < appearTime + showTime + disapearTime) {
float alpha= 1.f;