mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 01:46:42 +02:00
cleaned up code based on feedback from cppcheck
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user