fixed conditional typing in Towers.cc
git-svn-id: svn://anubis/dwscr/trunk@112 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
parent
3dc922c4ad
commit
15af488e98
@ -163,7 +163,9 @@ void Towers::update()
|
|||||||
it++;
|
it++;
|
||||||
delete *it;
|
delete *it;
|
||||||
m_logos.erase(it);
|
m_logos.erase(it);
|
||||||
m_logoToRemove = (m_logos.size() > 0) ? rand() % m_logos.size() : -1;
|
m_logoToRemove = (m_logos.size() > 0)
|
||||||
|
? (int) (rand() % m_logos.size())
|
||||||
|
: -1;
|
||||||
m_lastRemoveTime = m_elapsed;
|
m_lastRemoveTime = m_elapsed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user