same as previous (fixed build errors)

This commit is contained in:
2010-08-23 14:43:58 +03:00
parent 9c8f9fb98c
commit 68784b7e9e
2 changed files with 3 additions and 4 deletions

View File

@@ -58,14 +58,14 @@ void Splashes::AddSplash(srcSplashType src, int index, TowerType tw)
spl.AlienId = -1;
spl.destination = gameData->curAliens.value(tw.aim).pos;
spl.angle = tw.angle;
spl.pos = tw.pos; // FIXME: pos not in center/left angle of tower
spl.pos = tw.pos; // FIXME: pos not in center or left-angle of tower
spl.imgType = src.imgType;
spl.life = 0;
spl.src = index;
TriggerType trig;
for(int i; i<src.triggerIndexes.size(); i++)
{
trig.timer = gameData->players.at(tw.PlayerId)->srcTowers.at(tw.src).triggers.at(src.triggerIndexes.at(i));
trig.timer = gameData->players.at(tw.PlayerId)->srcTowers.at(tw.src).triggers.at(src.triggerIndexes.at(i)).timer;
trig.src = src.triggerIndexes.at(i);
spl.triggers.push_back(trig);
}
@@ -97,6 +97,5 @@ void Splashes::update()
src = gameData->srcSplashes.at(spl.src);
// TODO: calculate new angle and pos....
// TODO: activate trigger and more...
}
}
}