mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-29 06:47:03 +00:00
nilrider::planning:: derivative points now have priority when moving, otherwise they were immovable if vel == 0
This commit is contained in:
parent
e21a0180af
commit
a5313d24c4
@ -242,9 +242,9 @@ bool level::handle_planning(int sym, int uni) {
|
|||||||
};
|
};
|
||||||
int next_id = 0;
|
int next_id = 0;
|
||||||
for(auto p: plan) {
|
for(auto p: plan) {
|
||||||
check(p.at, next_id, 0);
|
|
||||||
check(p.at + p.vel, next_id, 1);
|
check(p.at + p.vel, next_id, 1);
|
||||||
check(p.at - p.vel, next_id, -1);
|
check(p.at - p.vel, next_id, -1);
|
||||||
|
check(p.at, next_id, 0);
|
||||||
next_id++;
|
next_id++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user