Changeset 50676d6 in Readingame


Ignore:
Timestamp:
Apr 30, 2024, 8:22:23 PM (7 weeks ago)
Author:
PulkoMandy <pulkomandy@…>
Branches:
main
Children:
c52dd7b
Parents:
7778ea6
Message:

Make Le Lyon de la Révolution fully playable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.cpp

    r7778ea6 r50676d6  
    4747                                break;
    4848                        case 0x01:
    49                                 buffer.SetToFormat("IsZero(%02x): ", script[pc + 1]);
     49                                buffer.SetToFormat("IsSet(%02x): ", script[pc + 1]);
    5050                                output += buffer;
    5151                                pc += 2;
     
    104104                                break;
    105105                        case 0x82:
    106                                 buffer.SetToFormat("Increment(BYTES[%02x]) ", script[pc + 1]);
     106                                buffer.SetToFormat("Clear(BYTES[%02x]) ", script[pc + 1]);
    107107                                output += buffer;
    108108                                pc += 2;
     
    945945                                {
    946946                                        uint8_t varAddress = script[pc++];
    947                                         if (conditionIsInverted ^ (gVar8[varAddress] != 0)) {
     947                                        if (conditionIsInverted ^ (gVar8[varAddress] == 0)) {
    948948                                                done = true;
    949949                                                runNextLine = true;
     
    10191019                                        uint8_t varAddress = script[pc++];
    10201020                                        gVar8[varAddress] = !gVar8[varAddress];
     1021                                        break;
     1022                                }
     1023                                case 0x82:
     1024                                {
     1025                                        uint8_t varAddress = script[pc++];
     1026                                        gVar8[varAddress] = 0;
    10211027                                        break;
    10221028                                }
Note: See TracChangeset for help on using the changeset viewer.