Subversion Repositories eduke32

Compare Revisions

Regard whitespace Rev 2542 → Rev 2543

/polymer/eduke32/source/game.c
10009,8 → 10009,8
int32_t i;
for (fg = foundgrps; fg; fg=fg->next)
{
for (i = 0; i<numgrpfiles; i++) if (fg->crcval == grpfiles[i].crcval) break;
if (i == numgrpfiles) continue; // unrecognised grp file
for (i = 0; i<NUMGRPFILES; i++) if (fg->crcval == grpfiles[i].crcval) break;
if (i == NUMGRPFILES) continue; // unrecognised grp file
fg->game = grpfiles[i].game;
if (!first) first = fg;
if (!Bstrcasecmp(fg->name, defaultduke3dgrp))
/polymer/eduke32/source/grpscan.c
30,7 → 30,7
#include "duke3d.h"
#include "grpscan.h"
 
struct grpfile grpfiles[numgrpfiles] =
struct grpfile grpfiles[NUMGRPFILES] =
{
{ "Duke Nukem 3D", 0xBBC9CE44, 26524524, GAME_DUKE, NULL },
{ "Duke Nukem 3D: Atomic Edition", 0xF514A6AC, 44348015, GAME_DUKE, NULL },
/polymer/eduke32/source/grpscan.h
24,7 → 24,7
#define __grpscan_h__
 
// List of internally-known GRP files
#define numgrpfiles 8
#define NUMGRPFILES 8
struct grpfile {
const char *name;
int32_t crcval;
31,7 → 31,7
int32_t size;
int32_t game;
struct grpfile *next;
} grpfiles[numgrpfiles], *foundgrps;
} grpfiles[NUMGRPFILES], *foundgrps;
 
int32_t ScanGroups(void);
void FreeGroups(void);
/polymer/eduke32/source/startgtk.game.c
447,9 → 447,9
 
for (fg = foundgrps; fg; fg=fg->next)
{
for (i = 0; i<numgrpfiles; i++)
for (i = 0; i<NUMGRPFILES; i++)
if (fg->crcval == grpfiles[i].crcval) break;
if (i == numgrpfiles) continue; // unrecognised grp file
if (i == NUMGRPFILES) continue; // unrecognised grp file
 
gtk_list_store_append(list, &iter);
gtk_list_store_set(list, &iter, 0, grpfiles[i].name, 1, fg->name, 2, (gpointer)fg, -1);
918,8 → 918,8
if (settings.autoload) ud.config.NoAutoLoad = FALSE;
else ud.config.NoAutoLoad = TRUE;
 
for (i = 0; i<numgrpfiles; i++) if (settings.crcval == grpfiles[i].crcval) break;
if (i != numgrpfiles)
for (i = 0; i<NUMGRPFILES; i++) if (settings.crcval == grpfiles[i].crcval) break;
if (i != NUMGRPFILES)
g_gameNamePtr = (char *)grpfiles[i].name;
}
 
/polymer/eduke32/source/startwin.game.c
254,8 → 254,8
 
for (fg = foundgrps; fg; fg=fg->next)
{
for (i = 0; i<numgrpfiles; i++) if (fg->crcval == grpfiles[i].crcval) break;
if (i == numgrpfiles) continue; // unrecognised grp file
for (i = 0; i<NUMGRPFILES; i++) if (fg->crcval == grpfiles[i].crcval) break;
if (i == NUMGRPFILES) continue; // unrecognised grp file
Bsprintf(buf, "%s\t%s", grpfiles[i].name, fg->name);
j = ListBox_AddString(hwnd, buf);
(void)ListBox_SetItemData(hwnd, j, (LPARAM)fg);
782,8 → 782,8
Bstrcpy(g_modDir,settings.gamedir);
else Bsprintf(g_modDir,"/");
 
for (i = 0; i<numgrpfiles; i++) if (settings.crcval == grpfiles[i].crcval) break;
if (i != numgrpfiles)
for (i = 0; i<NUMGRPFILES; i++) if (settings.crcval == grpfiles[i].crcval) break;
if (i != NUMGRPFILES)
g_gameNamePtr = (char *)grpfiles[i].name;
}