Ticket #8504: scummvm-kyrawarn.diff

File scummvm-kyrawarn.diff, 1.6 KB (added by SF/njoly, 18 years ago)

Fix kyra/kyra.cpp build warning

  • kyra/kyra.cpp

    RCS file: /cvsroot/scummvm/scummvm/kyra/kyra.cpp,v
    retrieving revision 1.120
    diff -u -r1.120 kyra.cpp
     
    998998
    999999void KyraEngine::seq_createAmuletJewel(int jewel, int page, int noSound, int drawOnly) {
    10001000        debug(9, "seq_createAmuletJewel(%d, %d, %d, %d)", jewel, page, noSound, drawOnly);
    1001         const static uint16 specialJewelTable[] = {
     1001        static const uint16 specialJewelTable[] = {
    10021002                0x167, 0x162, 0x15D, 0x158, 0x153, 0xFFFF
    10031003        };
    1004         const static uint16 specialJewelTable1[] = {
     1004        static const uint16 specialJewelTable1[] = {
    10051005                0x14F, 0x154, 0x159, 0x15E, 0x163, 0xFFFF
    10061006        };
    1007         const static uint16 specialJewelTable2[] = {
     1007        static const uint16 specialJewelTable2[] = {
    10081008                0x150, 0x155, 0x15A, 0x15F, 0x164, 0xFFFF
    10091009        };
    1010         const static uint16 specialJewelTable3[] = {
     1010        static const uint16 specialJewelTable3[] = {
    10111011                0x151, 0x156, 0x15B, 0x160, 0x165, 0xFFFF
    10121012        };
    1013         const static uint16 specialJewelTable4[] = {
     1013        static const uint16 specialJewelTable4[] = {
    10141014                0x152, 0x157, 0x15C, 0x161, 0x166, 0xFFFF
    10151015        };
    10161016        if (!noSound)
     
    17261726
    17271727void KyraEngine::snd_playWanderScoreViaMap(int command, int restart) {
    17281728        debug(9, "KyraEngine::snd_playWanderScoreViaMap(%d, %d)", command, restart);
    1729         const static int8 soundTable[] = {
     1729        static const int8 soundTable[] = {
    17301730                -1,   0,  -1,   1,   0,   3,   0,   2,
    17311731                 0,   4,   1,   2,   1,   3,   1,   4,
    17321732                 1, 0x5C,   1,   6,   1,   7,   2,   2,