build_towers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user