movei constructor now calls cmove, not move

This commit is contained in:
Zeno Rogue 2021-08-08 19:43:58 +02:00
parent 68ba57142a
commit d33fc20c6b
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ struct movei {
movei(cell *_s, int _d) : s(_s), d(_d) {
if(d == STRONGWIND) t = whirlwind::jumpDestination(s);
else if(d < 0 || d >= s->type) t = s;
else t = s->move(d);
else t = s->cmove(d);
}
movei(cell *_s, cell *_t, int _d) : s(_s), t(_t), d(_d) {}
movei(cellwalker cw) : s(cw.at), t(cw.cpeek()), d(cw.spin) {}