now is enable build and delete towers in game and improve graphic perfomance

find and correct many-many bugs
This commit is contained in:
2010-08-31 23:37:02 +04:00
parent 0e0f1cbfbb
commit 3316f3f48f
9 changed files with 299 additions and 196 deletions

View File

@@ -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");
}
}
}