Ticket #8645: sq2_fix.patch

File sq2_fix.patch, 1.9 KB (added by bluegr, 17 years ago)

Fix for bug #1648396 by making an SQ1 workaround work in SQ1 only

  • agi.h

     
    111111        GF_MACGOLDRUSH = (1 << 5),
    112112        GF_FANMADE =     (1 << 6),
    113113        GF_ESC_MENU =    (1 << 7),
    114         GF_MANHUNTER =   (1 << 8)
     114        GF_MANHUNTER =   (1 << 8),
     115        GF_SQ1 =         (1 << 9)
    115116};
    116117
    117118struct AGIGameDescription;
  • detection.cpp

     
    12361236                        Common::ADGF_NO_FLAGS
    12371237                },
    12381238                GType_V2,
    1239                 0,
     1239                GF_SQ1,
    12401240                0x2440,
    12411241        },
    12421242
     
    12521252                        Common::ADGF_NO_FLAGS
    12531253                },
    12541254                GType_V2,
    1255                 0,
     1255                GF_SQ1,
    12561256                0x2272,
    12571257        },
    12581258
     
    12681268                        Common::ADGF_NO_FLAGS
    12691269                },
    12701270                GType_V2,
    1271                 0,
     1271                GF_SQ1,
    12721272                0x2440,
    12731273        },
    12741274
     
    12841284                        Common::ADGF_NO_FLAGS
    12851285                },
    12861286                GType_V2,
    1287                 0,
     1287                GF_SQ1,
    12881288                0x2440,
    12891289        },
    12901290
     
    13001300                        Common::ADGF_NO_FLAGS
    13011301                },
    13021302                GType_V2,
    1303                 0,
     1303                GF_SQ1,
    13041304                0x2917,
    13051305        },
    13061306
     
    13161316                        Common::ADGF_NO_FLAGS
    13171317                },
    13181318                GType_V2,
    1319                 0,
     1319                GF_SQ1,
    13201320                0x2089,
    13211321        },
    13221322
     
    13321332                        Common::ADGF_NO_FLAGS
    13331333                },
    13341334                GType_V2,
    1335                 0,
     1335                GF_SQ1,
    13361336                0x2272,
    13371337        },
    13381338
     
    13481348                        Common::ADGF_NO_FLAGS
    13491349                },
    13501350                GType_V2,
    1351                 0,
     1351                GF_SQ1,
    13521352                0x2440,
    13531353        },
    13541354
  • sprite.cpp

     
    618618                /* add rectangle around object, don't clobber control
    619619                 * info in priority data. The box extends to the end of
    620620                 * its priority band!
    621                  *
    622                  * SQ1 needs +1 (see bug #810331)
    623621                 */
    624                 y3 = (y2 / 12) * 12 + 1;
     622                y3 = (y2 / 12) * 12;
    625623
     624                // SQ1 needs +1 (see bug #810331)
     625                if (_vm->getFeatures() & GF_SQ1)
     626                        y3++;
     627
    626628                // don't let box extend below y.
    627629                if (y3 > y2) y3 = y2;
    628630