From 2942cc096882fdaca0a2a6783906dd611d506bd1 Mon Sep 17 00:00:00 2001 From: dandistine <34634876+dandistine@users.noreply.github.com> Date: Sun, 20 Sep 2026 11:13:57 -0500 Subject: [PATCH 1/3] Only copy the header if it is different --- dev/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/CMakeLists.txt b/dev/CMakeLists.txt index 4895ce0..51a9c6d 100644 --- a/dev/CMakeLists.txt +++ b/dev/CMakeLists.txt @@ -45,7 +45,8 @@ else() endif() add_custom_target(CopyHeader - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h + BYPRODUCTS ${REPO_ROOT_DIR}/olcPixelGameEngine3.h + COMMAND ${CMAKE_COMMAND} -E copy_if_newer ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h DEPENDS olcPixelGameEngine3.h ) From e8082f0c28fb254c871a2f66fcf8ab648d4fdd2b Mon Sep 17 00:00:00 2001 From: dandistine <34634876+dandistine@users.noreply.github.com> Date: Sun, 20 Sep 2026 11:27:46 -0500 Subject: [PATCH 2/3] Change to copy_if_different since the github runner is out-of-date. --- dev/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/CMakeLists.txt b/dev/CMakeLists.txt index 51a9c6d..61704c9 100644 --- a/dev/CMakeLists.txt +++ b/dev/CMakeLists.txt @@ -46,7 +46,7 @@ endif() add_custom_target(CopyHeader BYPRODUCTS ${REPO_ROOT_DIR}/olcPixelGameEngine3.h - COMMAND ${CMAKE_COMMAND} -E copy_if_newer ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/olcPixelGameEngine3.h ${REPO_ROOT_DIR}/olcPixelGameEngine3.h DEPENDS olcPixelGameEngine3.h ) From b59739d8091c84e885d2a77495d3911e8739ccc8 Mon Sep 17 00:00:00 2001 From: dandistine <34634876+dandistine@users.noreply.github.com> Date: Sun, 20 Sep 2026 22:16:45 -0500 Subject: [PATCH 3/3] Sneak this one in before javid notices that it was missing. --- dev/src/vector4d.h | 7 +++++++ olcPixelGameEngine3.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/dev/src/vector4d.h b/dev/src/vector4d.h index 3661b50..2b477b7 100644 --- a/dev/src/vector4d.h +++ b/dev/src/vector4d.h @@ -310,6 +310,13 @@ namespace olc return lhs; } + template + inline constexpr auto operator -= (v_4d& lhs, const v_4d& rhs) + { + lhs = lhs - rhs; + return lhs; + } + // Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage template inline constexpr bool operator < (const v_4d& lhs, const v_4d& rhs) diff --git a/olcPixelGameEngine3.h b/olcPixelGameEngine3.h index 2b919d7..c610efb 100644 --- a/olcPixelGameEngine3.h +++ b/olcPixelGameEngine3.h @@ -1309,6 +1309,13 @@ namespace olc return lhs; } + template + inline constexpr auto operator -= (v_4d& lhs, const v_4d& rhs) + { + lhs = lhs - rhs; + return lhs; + } + // Greater/Less-Than Operator overloads - mathematically useless, but handy for "sorted" container storage template inline constexpr bool operator < (const v_4d& lhs, const v_4d& rhs)