]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/tankBoss.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / tankBoss.cpp
index ba37c341b2834070737c7958d74888c03277f51b..4cda249e86d1335f53b7f535b2c86fe1d843aa92 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004-2010 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -91,7 +92,7 @@ void traceTankBossMGFireLine()
                dx = -1;
        }
        
-       int x = (int)self->x;
+       int x;
        int y = (int)self->y + 10;
        
        Entity *enemy = NULL;
@@ -172,7 +173,7 @@ void tankBossMGCannonChargeFire()
        if (self->custom == 0)
        {
                self->think = tankBossMGCannonFire;
-               audio.playSound(SND_BOSSCUSTOM2, CH_AMBIANCE);
+               audio.playSound(SND_BOSSCUSTOM2, CH_AMBIANCE, self->x);
        }
 }
 
@@ -266,7 +267,7 @@ void tankBossMGAttack()
                self->think = &tankBossMGCannonChargeFire;
                self->setThinkTime(0);
                self->setActionFinished(2);
-               audio.playSound(SND_BOSSCUSTOM1, CH_AMBIANCE);
+               audio.playSound(SND_BOSSCUSTOM1, CH_AMBIANCE, self->x);
                Math::addBit(&self->flags, ENT_IMMUNE);
        }
        else