- WH: fixed ambiguous naming of 'attack' functions.

This commit is contained in:
Christoph Oelckers 2020-11-09 18:23:23 +01:00
parent f87d524987
commit 110adf4a83
20 changed files with 40 additions and 40 deletions

View file

@ -120,7 +120,7 @@ static void face(PLAYER& plr, short i) {
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
if (plr.z < spr.z) {
@ -211,7 +211,7 @@ void createDemonAI() {
e.frozen;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die;

View file

@ -155,7 +155,7 @@ static void flee(PLAYER& plr, short i) {
setsprite(i, spr.x, spr.y, spr.z);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -260,7 +260,7 @@ void createDevilAI() {
e.pain = pain;
e.face = face;
e.flee = flee;
e.attack = attack;
e.attack = attackfunc;
e.resurect = resurect;
e.search = search;
e.frozen = frozen;

View file

@ -190,7 +190,7 @@ static void cast(PLAYER& plr, short i) {
checksector6(i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
spr.lotag -= TICSPERFRAME;
@ -370,7 +370,7 @@ void createDragonAI() {
e.flee = flee;
e.die = die;
e.cast = cast;
e.attack = attack;
e.attack = attackfunc;
e.resurect = resurect;
e.search = search;
e.frozen = frozen;

View file

@ -133,7 +133,7 @@ static void face(PLAYER& plr, short i) {
newstatus(i, ATTACK);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -267,7 +267,7 @@ void createFatwitchAI() {
e.nuked = nuked;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -80,7 +80,7 @@ static void die(PLAYER& plr, short i) {
deletesprite(i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
spr.z = sector[sprite[i].sectnum].floorz;
@ -179,7 +179,7 @@ void createFishAI() {
e.info.Init(1, 1, 512, 120, 0, 32, false, 10, 0);
e.chase = chase;
e.die = die;
e.attack = attack;
e.attack = attackfunc;
e.skirmish = skirmish;
e.search = search;
e.face = face;

View file

@ -174,7 +174,7 @@ static void face(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -308,7 +308,7 @@ void createFredAI() {
e.search = search;
e.frozen = frozen;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.pain = pain;
e.resurect = resurect;

View file

@ -216,7 +216,7 @@ static void stand(PLAYER& plr, short i) {
checksector6(i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -535,7 +535,7 @@ void createGoblinAI() {
e.face = face;
e.flee = flee;
e.stand = stand;
e.attack = attack;
e.attack = attackfunc;
e.resurect = resurect;
e.search = search;
e.frozen = frozen;

View file

@ -342,7 +342,7 @@ static void face(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
spr.z = zr_florz;
@ -729,7 +729,7 @@ void createGonzoAI() {
e.frozen = frozen;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -270,7 +270,7 @@ static void face(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
if (spr.picnum == GRONSWATTACK) {
@ -501,7 +501,7 @@ void createGronAI() {
e.frozen = frozen;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -91,7 +91,7 @@ static void nuked(PLAYER& plr, short i) {
}
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
if (plr.z < spr.z) {
@ -230,7 +230,7 @@ void createGuardianAI() {
e.info.Init(isWh2() ? 35 : 32, isWh2() ? 35 : 32, 4096, 120, 0, 64, true, isWh2() ? 100 : 200, 0);
e.chase = chase;
e.nuked = nuked;
e.attack = attack;
e.attack = attackfunc;
e.face = face;
e.search = search;
e.flee = flee;

View file

@ -219,7 +219,7 @@ static void flee(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -322,7 +322,7 @@ void createImpAI() {
e.resurect = resurect;
e.face = face;
e.flee = flee;
e.attack = attack;
e.attack = attackfunc;
e.search = search;
e.skirmish = skirmish;
}

View file

@ -145,7 +145,7 @@ static void face(PLAYER& plr, short i) {
newstatus(i, ATTACK);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -397,7 +397,7 @@ void createJudyAI() {
e.nuked = nuked;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -121,7 +121,7 @@ static void face(PLAYER& plr, short i) {
newstatus(i, ATTACK);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -267,7 +267,7 @@ void createKatieAI() {
e.search = search;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -192,7 +192,7 @@ static void flee(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -339,7 +339,7 @@ void createKoboldAI() {
e.pain = pain;
e.face = face;
e.flee = flee;
e.attack = attack;
e.attack = attackfunc;
e.resurect = resurect;
e.search = search;
e.frozen = frozen;

View file

@ -196,7 +196,7 @@ static void face(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -340,7 +340,7 @@ void createMinotaurAI() {
e.nuked = nuked;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.die = die;
e.flee = flee;
e.frozen = frozen;

View file

@ -243,7 +243,7 @@ static void flee(PLAYER& plr, short i) {
setsprite(i, spr.x, spr.y, spr.z);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -430,7 +430,7 @@ void createNewGuyAI() {
e.pain = pain;
e.face = face;
e.flee = flee;
e.attack = attack;
e.attack = attackfunc;
e.die = die;
e.cast = cast;
}

View file

@ -202,7 +202,7 @@ static void stand(PLAYER& plr, short i) {
checksector6(i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -360,7 +360,7 @@ void createSkeletonAI() {
e.face = face;
e.flee = flee;
e.stand = stand;
e.attack = attack;
e.attack = attackfunc;
e.resurect = resurect;
e.search = search;
e.frozen = frozen;

View file

@ -133,7 +133,7 @@ static void face(PLAYER& plr, short i) {
newstatus(i, ATTACK);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -238,7 +238,7 @@ void createSkullyAI() {
e.nuked = nuked;
e.pain = pain;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.cast = cast;
e.die = die;

View file

@ -176,7 +176,7 @@ static void face(PLAYER& plr, short i) {
checkexpl(plr, i);
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
getzrange(spr.x, spr.y, spr.z - 1, spr.sectnum, (spr.clipdist) << 2, CLIPMASK0);
@ -306,7 +306,7 @@ void createSpiderAI() {
e.search = search;
e.frozen = frozen;
e.face = face;
e.attack = attack;
e.attack = attackfunc;
e.flee = flee;
e.die = die;
}

View file

@ -67,7 +67,7 @@ static void chase(PLAYER& plr, short i) {
}
}
static void attack(PLAYER& plr, short i) {
static void attackfunc(PLAYER& plr, short i) {
SPRITE& spr = sprite[i];
spr.lotag -= TICSPERFRAME;
@ -269,7 +269,7 @@ void createWillowAI() {
auto& e = enemy[WILLOWTYPE];
e.info.Init(32, 32, 512, 120, 0, 64, true, isWh2() ? 5 : 400, 0);
e.chase = chase;
e.attack = attack;
e.attack = attackfunc;
e.face = face;
e.search = search;
e.flee = flee;