From 8b88d76b96cd0c2a4dcd9c777c651b204214c63b Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sun, 28 Oct 2018 17:31:56 -0700 Subject: Probably fix pillars --- Source/Randomizer.cpp | 1 - Source/RandomizerCore.cpp | 1 + Source/RandomizerCore.h | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 6729ae7..f7f176a 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp @@ -1,7 +1,6 @@ /* * BUGS: * Shipwreck vault is solved reversed? - * Extra_back_distance to make pillar swaps work * Verify UTM perspective? * FEATURES: * Challenge randomization diff --git a/Source/RandomizerCore.cpp b/Source/RandomizerCore.cpp index d8d8014..04bdd11 100644 --- a/Source/RandomizerCore.cpp +++ b/Source/RandomizerCore.cpp @@ -49,6 +49,7 @@ void RandomizerCore::SwapPanels(int panel1, int panel2, int flags) { offsets[PUSH_SYMBOL_COLORS] = sizeof(int); offsets[OUTER_BACKGROUND] = 16; offsets[OUTER_BACKGROUND_MODE] = sizeof(int); + offsets[EXTRA_BACK_DISTANCE] = sizeof(float); offsets[TRACED_EDGES] = 16; offsets[AUDIO_PREFIX] = sizeof(void*); // offsets[IS_CYLINDER] = sizeof(int); diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 4002611..746306b 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h @@ -52,6 +52,7 @@ private: #define PUSH_SYMBOL_COLORS 0x208 #define OUTER_BACKGROUND 0x20C #define OUTER_BACKGROUND_MODE 0x21C +#define EXTRA_BACK_DISTANCE 0x22C #define TRACED_EDGES 0x230 #define AUDIO_PREFIX 0x278 #define POWER 0x2A8 @@ -113,6 +114,7 @@ private: #define PUSH_SYMBOL_COLORS 0x200 #define OUTER_BACKGROUND 0x204 #define OUTER_BACKGROUND_MODE 0x214 +#define EXTRA_BACK_DISTANCE 0x224 #define TRACED_EDGES 0x228 #define AUDIO_PREFIX 0x270 #define POWER 0x2A0 -- cgit 1.4.1