removed unused references to pathdist from kraken movement

This commit is contained in:
Zeno Rogue 2022-09-17 11:13:36 +02:00
parent 5af23eab7d
commit f0f6ae7514
1 changed files with 3 additions and 3 deletions

View File

@ -2981,7 +2981,6 @@ EX namespace kraken {
}
EX void attacks() {
pathdata pd(2);
bool offboat[MAXPLAYER];
for(int i=0; i<MAXPLAYER; i++) offboat[i] = false;
for(int i=0; i<isize(dcal); i++) {
@ -3041,7 +3040,9 @@ EX namespace kraken {
vector<pair<cell*, cell*> > acells;
acells.push_back(make_pair(c2, c));
forCellIdEx(c3, i, c) {
c3->monst = moKrakenT, c3->mondir = c->c.spin(i), c3->monmirror = c->monmirror ^ c->c.mirror(i), onpath(c3, 0);
c3->monst = moKrakenT;
c3->mondir = c->c.spin(i);
c3->monmirror = c->monmirror ^ c->c.mirror(i);
int i0 = (i+c->c.spin(c->mondir)-c->mondir+96+c->type/2) % c2->type;
c3->hitpoints = hpcount[i0];
acells.push_back(make_pair(c2->move(i0), c3));
@ -3073,7 +3074,6 @@ EX namespace kraken {
}
commitAnimations(LAYER_BIG);
sleep(c);
onpath(c, 0);
return;
}