Subversion Repositories eduke32

Rev

Rev 2542 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2542 Rev 2543
Line 10007... Line 10007...
10007
        // if it is not found, choose the first GRP from the list
10007
        // if it is not found, choose the first GRP from the list
10008
        struct grpfile *fg, *first = NULL;
10008
        struct grpfile *fg, *first = NULL;
10009
        int32_t i;
10009
        int32_t i;
10010
        for (fg = foundgrps; fg; fg=fg->next)
10010
        for (fg = foundgrps; fg; fg=fg->next)
10011
        {
10011
        {
10012
            for (i = 0; i<numgrpfiles; i++) if (fg->crcval == grpfiles[i].crcval) break;
10012
            for (i = 0; i<NUMGRPFILES; i++) if (fg->crcval == grpfiles[i].crcval) break;
10013
            if (i == numgrpfiles) continue; // unrecognised grp file
10013
            if (i == NUMGRPFILES) continue; // unrecognised grp file
10014
            fg->game = grpfiles[i].game;
10014
            fg->game = grpfiles[i].game;
10015
            if (!first) first = fg;
10015
            if (!first) first = fg;
10016
            if (!Bstrcasecmp(fg->name, defaultduke3dgrp))
10016
            if (!Bstrcasecmp(fg->name, defaultduke3dgrp))
10017
            {
10017
            {
10018
                g_gameType = grpfiles[i].game;
10018
                g_gameType = grpfiles[i].game;