Woke up relatively late, 6:30 am. Had nothing better to do than to work on the game:
Mostly it was adding debug log noise… which generated enough signal to actually reliably start entering the CreateMotif
function.
Later in the day, I got a chance to do some more debugging, this time directly debugging CreateMotif
... Which I had intended to start last Tuesday!
Anyways, I was seeing some odd behavior from the debugger, which was solved once I extracted the constant data CreateMotif used into a struct:
This was the refactor work I identified in Long Functions Smell Bad, and doing it helped identify a stupid issue I had in the data that was extracted.
I had forgotten switch statements need breaks. Whoops.
All of this to say, tomorrow I can actually start testing the functionality of CreateMotif
lol.