Commit bd806b96 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Remove unused variables

GIT_SILENT
parent 94adf49c
......@@ -589,10 +589,9 @@ void Ai::chooseAction()
int framesleft,framesright;
bool rotateAndAccelerate=false;
Hit *nextHit = nullptr;
int shotHitTime;
int i;
shotHitTime=1000000;
// int shotHitTime=1000000;
nextHit = nullptr;
/* for(h=objectsHitByShip.first();h;h=objectsHitByShip.next())
if(h->object==HSHOT)
......
......@@ -615,7 +615,7 @@ void MyMainView::timerEvent(QTimerEvent *event)
void MyMainView::moveShips()
{
int i,nf,olde;
int i,olde;
double nx,ny,en,nr;
BulletSprite *bullet;
MineSprite *mine;
......@@ -650,7 +650,6 @@ void MyMainView::moveShips()
en=ship[i]->getEnergy();
nr=ship[i]->getRotation();
nf = 0;
nx=cos(nr);
ny=sin(nr);
if (((!playerIsAi && playerKeyPressed[i][PlayerKeyAcc]) ||
......@@ -860,7 +859,7 @@ void MyMainView::calculatePowerups()
void MyMainView::collisions()
{
int pl,hp,op,oldhp[2],ohp;
int pl,hp,oldhp[2],ohp;
QList<QGraphicsItem *> unexact;
BulletSprite *bullet;
MineSprite *mine;
......@@ -1041,7 +1040,6 @@ void MyMainView::collisions()
Q_EMIT hitPoints(pl,hp);
if((hp==0)&&(ship[pl]->getExplosion()<0))
{
op=(pl+1)%2;
ship[pl]->setExplosion((int)(EXPLOSION_TIME/config.gamespeed));
expl = new ExplosionSprite(svgrender,animation[ID_EXPLOSION],ship[pl]);
field.addItem(expl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment