From e48fd4d75a99af6a686ced8735653597258317ff Mon Sep 17 00:00:00 2001 From: Alex Cawthan Date: Wed, 9 Sep 2026 15:57:42 +1000 Subject: [PATCH] Players are now able to call reinforcements --- aeron | 2 +- packaging/windows/Dockerfile | 8 +++++--- src/tie/user.c | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/aeron b/aeron index 51f2444..88e4cd0 160000 --- a/aeron +++ b/aeron @@ -1 +1 @@ -Subproject commit 51f2444278f7d11f76e2cba5203bfbcf1f982aa4 +Subproject commit 88e4cd07a5f0e4c5a5307a5b5b43f59d0170f33a diff --git a/packaging/windows/Dockerfile b/packaging/windows/Dockerfile index 51b292c..d5ebdc4 100644 --- a/packaging/windows/Dockerfile +++ b/packaging/windows/Dockerfile @@ -53,9 +53,11 @@ ADD --checksum=sha256:${DXC_LINUX_X64_SHA256} \ https://github.com/microsoft/DirectXShaderCompiler/releases/download/v${DXC_VERSION}/${DXC_LINUX_X64_ARCHIVE} \ /tmp/dxc.tar.gz +#/deps/SDL_shadercross/include/SDL3_shadercross/SDL_shadercross.h + RUN git clone https://github.com/libsdl-org/SDL_shadercross.git /deps/SDL_shadercross \ && git -C /deps/SDL_shadercross checkout "${SHADERCROSS_COMMIT}" \ - && git -C /deps/SDL_shadercross apply /tmp/shadercross-fsr3.patch \ + && cd /deps/SDL_shadercross/ && patch -F 5 -p1 < /tmp/shadercross-fsr3.patch && cd ../.. \ && git -C /deps/SDL_shadercross submodule update --init --depth 1 \ external/SPIRV-Cross \ && mkdir -p \ @@ -106,7 +108,7 @@ COPY packaging/common/sdl-gpu-d3d12-hdr.patch /tmp/sdl-gpu-d3d12-hdr.patch # has a D3D12 backend, so the host SDL above is left unpatched. RUN git clone --branch "release-${SDL_VERSION}" --depth 1 \ https://github.com/libsdl-org/SDL.git /deps/SDL \ - && git -C /deps/SDL apply /tmp/sdl-gpu-d3d12-hdr.patch \ + && patch -F 3 /deps/SDL/src/gpu/d3d12/SDL_gpu_d3d12.c < /tmp/sdl-gpu-d3d12-hdr.patch \ && cmake -S /deps/SDL -B /build/sdl-windows -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/opt/tie-windows \ @@ -175,7 +177,7 @@ RUN git clone --branch "${VCPKG_REF}" --depth 1 \ https://github.com/microsoft/vcpkg.git /opt/vcpkg \ && cp /tmp/fluidsynth-library-only.patch \ /opt/vcpkg/ports/fluidsynth/fluidsynth-library-only.patch \ - && git -C /opt/vcpkg apply /tmp/vcpkg-fluidsynth-library-only.patch \ + && patch -F 3 /opt/vcpkg/ports/fluidsynth/portfile.cmake < /tmp/vcpkg-fluidsynth-library-only.patch \ && /opt/vcpkg/bootstrap-vcpkg.sh -disableMetrics \ && /opt/vcpkg/vcpkg install fluidsynth speexdsp \ --triplet x64-mingw-dynamic \ diff --git a/src/tie/user.c b/src/tie/user.c index 3dfa275..4efa698 100644 --- a/src/tie/user.c +++ b/src/tie/user.c @@ -2201,7 +2201,7 @@ static void ui_toggle_beam(void) { msg_messageprintf((pc->beam_state & 0x80) ? MSG_BEAM_ON : MSG_BEAM_OFF); } -/* 'Reinforce' confirm on key 83 = 'S'. Binary 0x5D63B. */ +/* 'Reinforce' confirm on key 83 = 'S'. Binary 0x5D63B. */ static void ui_reinforce_request(void) { if (pstate.space_confirm_action) return; @@ -2209,7 +2209,7 @@ static void ui_reinforce_request(void) { for (uint16_t i = 0; i < (uint16_t)mission_file_header.num_fg; ++i) { /* Watcom unaligned load on fg_array[i].link_code: the +3 byte is * start_cond[0].type (byte 0x4A), same byte both paths check. */ - if (fg_array[i].link_code == 20 || fg_array[i].start_cond[0].type == 20) { + if (fg_array[i].link_code == 20 || fg_array[i].start_cond[0].cond == 20) { reinforce_avail = 1; break; }