build_towers

This commit is contained in:
unknown
2010-08-31 21:29:47 +04:00
parent bbb6f9b366
commit 0e0f1cbfbb
8 changed files with 82 additions and 21 deletions

View File

@@ -25,7 +25,11 @@ void Aliens::addAlien(int srcId)
al.pathIndex = 1;
al.angle = 180.0f*(- std::atan2( al.pos.x() - al.path.at(al.pathIndex).x(),al.pos.y() - al.path.at(al.pathIndex).y()))/M_PI;
al.animIndex = 0.f;
if (al.path.isEmpty()) qFatal("ERROR create path");
if (al.path.isEmpty())
{
qCritical("ERROR create path");
return; // FIXME: this
}
//qDebug() << al.path;
al.health = gameData->srcAliens.at(srcId).health;
al.speed = gameData->srcAliens.at(srcId).speed;