1
0
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:
Zeno Rogue 2022-04-30 12:03:30 +02:00
parent e21a0180af
commit a5313d24c4

View File

@ -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++;
}
}