1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 14:17:10 +00:00

movei in more functions, also fixed wind crows

This commit is contained in:
Zeno Rogue
2019-11-23 23:37:52 +01:00
parent 9b329ef901
commit 95c41684df
2 changed files with 17 additions and 11 deletions

View File

@@ -643,7 +643,9 @@ struct info {
else if(i) setdist(i, OUT_OF_PRISON);
}
EX void move(cell *ct, cell *cf) {
EX void move(const movei& mi) {
auto& cf = mi.s;
auto& ct = mi.t;
if(euclid) return;
princess::info *i = princess::getPrincessInfo(cf);
if(!i) {
@@ -2641,7 +2643,9 @@ EX namespace dragon {
}
}
EX bool move(cell *dt, cell *df) {
EX bool move(const movei& mi) {
auto& df = mi.s;
auto& dt = mi.t;
if(df->monst == moDragonHead) {
dt->mondir = neighborId(dt,df);
// printf("pull back\n");