mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
movei constructor now calls cmove, not move
This commit is contained in:
parent
68ba57142a
commit
d33fc20c6b
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user