about summary refs log tree commit diff stats
path: root/Source
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-19 09:59:59 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-19 09:59:59 -0800
commitab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1 (patch)
tree352bbf485dee4cc8f465d928b131524ca7329d5e /Source
parent52b01775c2c94f08786696cae7836ca56f683739 (diff)
downloadwitness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.tar.gz
witness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.tar.bz2
witness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.zip
shrug
Diffstat (limited to 'Source')
-rw-r--r--Source/Memory.h8
-rw-r--r--Source/Randomizer2.cpp2
2 files changed, 6 insertions, 4 deletions
diff --git a/Source/Memory.h b/Source/Memory.h index 79fbaba..5332cc3 100644 --- a/Source/Memory.h +++ b/Source/Memory.h
@@ -5,8 +5,8 @@
5#include <vector> 5#include <vector>
6#include <windows.h> 6#include <windows.h>
7 7
8#define GLOBALS 0x5B28C0 8// #define GLOBALS 0x5B28C0
9// #define GLOBALS 0x62D0A0 9#define GLOBALS 0x62D0A0
10 10
11#define HEARTBEAT 0x401 11#define HEARTBEAT 0x401
12enum class ProcStatus { 12enum class ProcStatus {
@@ -188,8 +188,8 @@ private:
188#define METADATA 0xF2 // sizeof(short) 188#define METADATA 0xF2 // sizeof(short)
189#define HOTEL_EP_NAME 0x4BC640 189#define HOTEL_EP_NAME 0x4BC640
190#elif GLOBALS == 0x62D0A0 190#elif GLOBALS == 0x62D0A0
191#define POSITION #error 191#define POSITION 0x24
192#define ORIENTATION #error 192#define ORIENTATION 0x34
193#define PATH_COLOR 0xC0 193#define PATH_COLOR 0xC0
194#define REFLECTION_PATH_COLOR 0xD0 194#define REFLECTION_PATH_COLOR 0xD0
195#define DOT_COLOR 0xF0 195#define DOT_COLOR 0xF0
diff --git a/Source/Randomizer2.cpp b/Source/Randomizer2.cpp index adf8eb6..00b584e 100644 --- a/Source/Randomizer2.cpp +++ b/Source/Randomizer2.cpp
@@ -34,6 +34,7 @@ void Randomizer2::RandomizeTutorial() {
34 Puzzle p; 34 Puzzle p;
35 p.NewGrid(6, 6); 35 p.NewGrid(6, 6);
36 36
37 // @Bug: Mid-segment endpoints are not yet supported.
37 switch (Random::RandInt(1, 4)) { 38 switch (Random::RandInt(1, 4)) {
38 case 1: 39 case 1:
39 p.grid[Random::RandInt(0, p.width-1)][0].end = Cell::Dir::UP; 40 p.grid[Random::RandInt(0, p.width-1)][0].end = Cell::Dir::UP;
@@ -93,6 +94,7 @@ void Randomizer2::RandomizeTutorial() {
93 p.grid[12][12].start = true; 94 p.grid[12][12].start = true;
94 p.grid[6][0].end = Cell::Dir::UP; 95 p.grid[6][0].end = Cell::Dir::UP;
95 96
97 // @Cleanup
96 std::vector<Pos> cuts; 98 std::vector<Pos> cuts;
97 bool toTheRight; 99 bool toTheRight;
98 // Start by generating a cut line, to ensure one of the two startpoints is inaccessible 100 // Start by generating a cut line, to ensure one of the two startpoints is inaccessible