1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 19:07:40 +00:00

more accurate portal movement

This commit is contained in:
Zeno Rogue
2021-10-07 12:43:45 +02:00
parent 8d0059a760
commit 0966d5e36c
2 changed files with 26 additions and 9 deletions

View File

@@ -2904,13 +2904,8 @@ EX void shift_view(hyperpoint H) {
if(callhandlers(false, hooks_shift_view, H)) return;
static bool recursive = false;
if(!recursive && intra::in) {
H /= 10;
recursive = true;
for(int i=0; i<10; i++) {
shift_view(H);
intra::check_portal_movement();
}
recursive = false;
dynamicval<bool> r(recursive, true);
intra::shift_view_portal(H);
return;
}
auto oView = View;