From 7298fedc9dc6170a47a489a7918de0f7361621dd Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 24 Oct 2018 18:45:54 -0700 Subject: Oops --- WitnessRandomizer/WitnessRandomizer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'WitnessRandomizer/WitnessRandomizer.cpp') diff --git a/WitnessRandomizer/WitnessRandomizer.cpp b/WitnessRandomizer/WitnessRandomizer.cpp index f8bd4ee..8a966d4 100644 --- a/WitnessRandomizer/WitnessRandomizer.cpp +++ b/WitnessRandomizer/WitnessRandomizer.cpp @@ -158,6 +158,9 @@ void WitnessRandomizer::SwapPanels(int panel1, int panel2, int flags) { offsets[0x4A8] = sizeof(void*); // *colored_regions // offsets[0x4B8] = sizeof(void*); // *backing_texture } + if (flags & SWAP_BACK_DISTANCE) { + offsets[0x22C] = sizeof(float); // extra_back_distance + } for (auto const& [offset, size] : offsets) { SwapPanelData(panel1, panel2, offset, size); -- cgit 1.4.1