Skip to content

Commit

Permalink
fix inversion in branch_if (0x08)
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Feb 28, 2024
1 parent 8cee0b0 commit be19d82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions list-rooms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1153,10 +1153,9 @@ static void printscript(const char* spaces, const uint8_t* buf, uint32_t scripta
}
case BRANCH_IF: // 0x08
bool condition;
condition = true;
// fall through
case BRANCH_IF_NOT: // 0x09
condition = false;
condition = (instr == BRANCH_IF);
// NOTE: this uses sub-instruction chaining, msbit in sub-instr set means last sub-instr
// we need to have special cases for sniff, gourds and doggo lists at the moment
// TODO: reduce special cases to a minimum (unified parse_subinstr() is at the end)
Expand Down

0 comments on commit be19d82

Please sign in to comment.