now is enable build and delete towers in game and improve graphic perfomance
find and correct many-many bugs
This commit is contained in:
@@ -42,13 +42,17 @@ void Aliens::addAlien(int srcId)
|
||||
|
||||
void Aliens::retrace(bool * OK)
|
||||
{
|
||||
qDebug("re-trace!");
|
||||
//qDebug("re-trace!");
|
||||
gameData->map->removeAliensPath();
|
||||
for (QHash<int, AlienType>::iterator i = gameData->curAliens.begin(); i != gameData->curAliens.end(); ++i)
|
||||
{
|
||||
(*i).path = gameData->map->createPath((*i).pos.toPoint(),(*i).finish);
|
||||
(*i).pathIndex = 1;
|
||||
if ((*i).path.isEmpty()) *OK = false;
|
||||
if ((*i).path.isEmpty())
|
||||
{
|
||||
*OK = false;
|
||||
qDebug("Aliens retrace = false");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user