Skip to content

Commit 85f4b16

Browse files
committed
Removing failed child machine info
1 parent a738925 commit 85f4b16

File tree

6 files changed

+133
-193
lines changed

6 files changed

+133
-193
lines changed

src/brogue/Architect.c

+7
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,13 @@ static boolean buildAMachineOrChildMachine(enum machineTypes bp,
16311631
}
16321632
break;
16331633
}
1634+
else {
1635+
// Remove failed machine from info
1636+
deleteAllMachineInfo(thisMachineInfo->childMachineInfo);
1637+
machineInfo *theChildInfo = (machineInfo *) malloc(sizeof(machineInfo));
1638+
memset(theChildInfo, '\0', sizeof(machineInfo));
1639+
thisMachineInfo->childMachineInfo = theChildInfo;
1640+
}
16341641
}
16351642

16361643
if (!i) {

src/brogue/Rogue.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,6 @@ typedef struct gameConstants {
23852385
const int amuletLevel; // level on which the amulet appears (used in signed arithmetic)
23862386

23872387
const int depthAccelerator; // factor for how fast depth-dependent features scale compared to usual 26-level dungeon
2388-
const int minimumAltarLevel; // how deep before resurrection and commutation altars can be generated
23892388
const int minimumLavaLevel; // how deep before lava can be generated
23902389
const int minimumBrimstoneLevel; // how deep before brimstone can be generated
23912390
const int mutationsOccurAboveLevel; // how deep before monster mutations can be generated
@@ -3502,7 +3501,7 @@ extern "C" {
35023501
int quitImmediately(void);
35033502
void dialogAlert(char *message);
35043503
void mainBrogueJunction(void);
3505-
int printSeedCatalog(uint64_t startingSeed, uint64_t numberOfSeedsToScan, unsigned int scanThroughDepth, boolean isCsvFormat, char *errorMessage);
3504+
int printSeedCatalog(uint64_t startingSeed, uint64_t numberOfSeedsToScan, unsigned int scanThroughDepth, boolean isCsvFormat, boolean includeVaults, char *errorMessage);
35063505

35073506
void initializeButton(brogueButton *button);
35083507
void drawButtonsInState(buttonState *state, screenDisplayBuffer *button_dbuf);

0 commit comments

Comments
 (0)