Repository navigation
Closed
Description
Looks like PR #760 introduced some logic errors that need fixing.
When checking the seed, easy mode is automatically assigned:
Lines 4391 to 4397 in 2e0ea9a
| void printSeed() { | |
| char buf[COLS]; | |
| char mode[14] = ""; | |
| if (rogue.mode = GAME_MODE_EASY) { | |
| strcpy(mode,"easy mode; "); | |
| } else if (WIZARD_MODE) { |
Several mode checks have incorrect logic (!a == b) should be (a != b):
Line 278 in 2e0ea9a
| if (!rogue.mode == GAME_MODE_EASY) { |
BrogueCE/src/brogue/RogueMain.c
Line 1341 in 2e0ea9a
| if (!rogue.mode == GAME_MODE_WIZARD && !rogue.playbackMode) { |
And when the player wants to enable easy mode, it does not perform the assignment:
BrogueCE/src/brogue/RogueMain.c
Lines 1391 to 1393 in 2e0ea9a
| message("An ancient and terrible evil burrows into your willing flesh!", REQUIRE_ACKNOWLEDGMENT); | |
| rogue.mode == GAME_MODE_EASY; | |
| setPlayerDisplayChar(); |
Metadata
Metadata
Assignees
Labels
No labels
Activity
tmewett#792 Fix for easy mode logic errors
tmewett#792 Fix for easy mode logic errors