mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +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;
|
||||
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, next_id, 0);
|
||||
next_id++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user