mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-05 11:57:58 +00:00
nilrider::planning:: derivative points now have priority when moving, otherwise they were immovable if vel == 0
This commit is contained in:
@@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user