From 8b4241e89ef5754c0fdce7d7e6469ef2daa14f70 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Mon, 9 Nov 2026 22:28:01 -0500 Subject: [PATCH 1/5] Orbs that grant magic vision shouldn't drain with Orb of Time outside of line-of-sight mode --- environment.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/environment.cpp b/environment.cpp index 3abfff9d..91b6bab3 100644 --- a/environment.cpp +++ b/environment.cpp @@ -1028,11 +1028,13 @@ EX void create_los() { } } } - int magicrange = 0; - for(auto c: dcal) if(!in_line_of_sight(c) && in_line_of_sight_for_player(c)) magicrange = c->cpdist; - if(magicrange > 3) markOrb(itOrbInvis); - else if(magicrange > 2) markOrb(itOrbFrog), markOrb(itOrbDash), markOrb(itOrbPhasing); - else markOrb(itOrbAether); + if(lineofsight != los::none) { + int magicrange = 0; + for(auto c: dcal) if(!in_line_of_sight(c) && in_line_of_sight_for_player(c)) magicrange = c->cpdist; + if(magicrange > 3) markOrb(itOrbInvis); + else if(magicrange > 2) markOrb(itOrbFrog), markOrb(itOrbDash), markOrb(itOrbPhasing); + else markOrb(itOrbAether); + } recompute_los = false; } From 99086391e3f74428424dab857261099e68f70b7a Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Tue, 10 Nov 2026 23:48:21 -0500 Subject: [PATCH 2/5] Fix crash in Banach-Tarski-like RogueViz demo Two more instances of the problem previously fixed in commit 625df0f009e5 ("fixed an error with ptds going beyond the end of array") --- drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 1a602b02..d4994a81 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2451,7 +2451,7 @@ extern bool lshiftclick, lctrlclick; EX void reverse_transparent_walls() { int pt = int(PPR::TRANSPARENT_WALL); - reverse(&ptds[qp0[pt]], &ptds[qp[pt]]); + reverse(ptds.data() + qp0[pt], ptds.data() + qp[pt]); } EX void set_vr_sphere() { @@ -2641,7 +2641,7 @@ EX void drawqueue() { auto& ap = (dqi_poly&) *ptds[i]; ap.cache = xintval(ap.V * ap.intester); } - sort(&ptds[qp0[pp]], &ptds[qp[pp]], + sort(ptds.data() + qp0[pp], ptds.data() + qp[pp], [] (const unique_ptr& p1, const unique_ptr& p2) { auto& ap1 = (dqi_poly&) *p1; auto& ap2 = (dqi_poly&) *p2; From 58d2de650d35f4d581212129b9a071cfc25862b8 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Wed, 11 Nov 2026 00:09:24 -0500 Subject: [PATCH 3/5] Fix the RogueViz platformer with SDL2 --- rogueviz/platformer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rogueviz/platformer.cpp b/rogueviz/platformer.cpp index d5a23871..6a4b9d36 100644 --- a/rogueviz/platformer.cpp +++ b/rogueviz/platformer.cpp @@ -435,14 +435,14 @@ void game_frame() { vel_y = next_y - where_y; if(on_floor) { - if(keystate[SDLK_LEFT]) vel_x = -d * modv; - else if(keystate[SDLK_RIGHT]) vel_x = d * modv; + if(keystate[SDL12(SDLK_LEFT, SDL_SCANCODE_LEFT)]) vel_x = -d * modv; + else if(keystate[SDL12(SDLK_RIGHT, SDL_SCANCODE_RIGHT)]) vel_x = d * modv; else vel_x = 0; - if(keystate[SDLK_UP]) vel_y = -4 * d * modv; + if(keystate[SDL12(SDLK_UP, SDL_SCANCODE_UP)]) vel_y = -4 * d * modv; } else { - if(keystate[SDLK_LEFT]) vel_x += -d * .01 * moda; - else if(keystate[SDLK_RIGHT]) vel_x += d * .01 * moda; + if(keystate[SDL12(SDLK_LEFT, SDL_SCANCODE_LEFT)]) vel_x += -d * .01 * moda; + else if(keystate[SDL12(SDLK_RIGHT, SDL_SCANCODE_RIGHT)]) vel_x += d * .01 * moda; vel_y += d * grav * moda; } From 74fb210e5fe29e189b5ac8d8c7ce43063dc49b1b Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Wed, 11 Nov 2026 00:54:39 -0500 Subject: [PATCH 4/5] Make teleporting count as a turn in minesweeper, so the turn count isn't always 0 --- orbs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/orbs.cpp b/orbs.cpp index 0664775e..0c7f39ac 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -684,6 +684,7 @@ EX void teleportTo(cell *dest) { movecost(from, dest, 2); #if CAP_COMPLEX2 mine::auto_teleport_charges(); + if(mine::in_minesweeper()) ++turncount; #endif } From 501ca226414f76ed5c3334c0f549fa810a6fc1f4 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sun, 15 Nov 2026 01:26:48 -0500 Subject: [PATCH 5/5] Make the tile under stranded boats look like shallow water where appropriate --- celldrawer.cpp | 2 +- flags.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/celldrawer.cpp b/celldrawer.cpp index d28404f1..dd6ebc4d 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -186,7 +186,7 @@ void celldrawer::setcolors() { fcol = wcol; } - else if(c->wall == waShallow) + else if(c->wall == waShallow || (c->wall == waStrandedBoat && c->land == laOcean && c->landparam >= tidalphase2)) fcol = 0x40C0C0; // floor colors for all the lands diff --git a/flags.cpp b/flags.cpp index 3cc9c151..64214069 100644 --- a/flags.cpp +++ b/flags.cpp @@ -351,7 +351,7 @@ EX spatial_info get_spatial_info(cell *c) { return spatial_info{SIDE::WATERLEVEL, SIDE::DEEP, F(DEEP), 0}; if(c->wall == waReptile) return spatial_info{SIDE::FLOOR, SIDE::FLOOR, F(FLOOR) | F(DEEP), 0}; - if(c->wall == waShallow) + if(c->wall == waShallow || (c->wall == waStrandedBoat && c->land == laOcean && c->landparam >= tidalphase2)) return spatial_info{SIDE::WATERLEVEL, SIDE::SHALLOW, F(SHALLOW) | F(DEEP), 0}; if(isWateryOrBoat(c) || isChasmy(c)) return spatial_info{SIDE::WATERLEVEL, SIDE::DEEP, F(DEEP), 0};