mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1006 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d229632433
commit
292672fdc7
2 changed files with 18 additions and 11 deletions
|
@ -1248,6 +1248,7 @@ static void ReadHelpFile(const char *name)
|
||||||
numhelppages = i;
|
numhelppages = i;
|
||||||
|
|
||||||
Bfclose(fp);
|
Bfclose(fp);
|
||||||
|
initprintf("Loaded %s\n",name);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
HELPFILE_ERROR:
|
HELPFILE_ERROR:
|
||||||
|
@ -6742,8 +6743,6 @@ int ExtPreInit(int argc,const char **argv)
|
||||||
|
|
||||||
checkcommandline(argc,argv);
|
checkcommandline(argc,argv);
|
||||||
|
|
||||||
ReadHelpFile("m32help.hlp");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7378,7 +7377,7 @@ int loadtilegroups(char *fn)
|
||||||
script = scriptfile_fromfile(fn);
|
script = scriptfile_fromfile(fn);
|
||||||
if (!script) return -1;
|
if (!script) return -1;
|
||||||
|
|
||||||
for (i = 0; i < MAX_TILE_GROUPS; i++)
|
for (i = MAX_TILE_GROUPS-1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
Bmemcpy(&s_TileGroups[i],&blank,sizeof(blank));
|
Bmemcpy(&s_TileGroups[i],&blank,sizeof(blank));
|
||||||
}
|
}
|
||||||
|
@ -7398,7 +7397,7 @@ int loadtilegroups(char *fn)
|
||||||
// If the colors were specified...
|
// If the colors were specified...
|
||||||
if (s_TileGroups[i].color1 && s_TileGroups[i].color2)
|
if (s_TileGroups[i].color1 && s_TileGroups[i].color2)
|
||||||
{
|
{
|
||||||
for (j = 0; j < s_TileGroups[i].nIds; j++)
|
for (j = s_TileGroups[i].nIds-1; j >= 0 ; j--)
|
||||||
{
|
{
|
||||||
// Apply the colors to all tiles in the group.
|
// Apply the colors to all tiles in the group.
|
||||||
spritecol2d[s_TileGroups[i].pIds[j]][0] = s_TileGroups[i].color1;
|
spritecol2d[s_TileGroups[i].pIds[j]][0] = s_TileGroups[i].color1;
|
||||||
|
@ -7606,6 +7605,8 @@ int ExtInit(void)
|
||||||
|
|
||||||
loadtilegroups("tiles.cfg");
|
loadtilegroups("tiles.cfg");
|
||||||
|
|
||||||
|
ReadHelpFile("m32help.hlp");
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7644,14 +7645,14 @@ void ExtUnInit(void)
|
||||||
uninitgroupfile();
|
uninitgroupfile();
|
||||||
writesetup(setupfilename);
|
writesetup(setupfilename);
|
||||||
|
|
||||||
for (i = 0; (unsigned)i < MAX_TILE_GROUPS; i++)
|
for (i = MAX_TILE_GROUPS-1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
if (s_TileGroups[i].pIds != NULL)
|
if (s_TileGroups[i].pIds != NULL)
|
||||||
Bfree(s_TileGroups[i].pIds);
|
Bfree(s_TileGroups[i].pIds);
|
||||||
if (s_TileGroups[i].szText != NULL)
|
if (s_TileGroups[i].szText != NULL)
|
||||||
Bfree(s_TileGroups[i].szText);
|
Bfree(s_TileGroups[i].szText);
|
||||||
}
|
}
|
||||||
for (i = 0; i < numhelppages;i++) free(helppage[i]);
|
for (i = numhelppages-1; i >= 0;i--) free(helppage[i]);
|
||||||
if (helppage) free(helppage);
|
if (helppage) free(helppage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7670,7 +7671,7 @@ void ExtPreCheckKeys(void) // just before drawrooms
|
||||||
if (shadepreview)
|
if (shadepreview)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (i=0;i<numsprites;i++)
|
for (i=numsprites-1;i>=0;i--)
|
||||||
if (sprite[i].picnum == SECTOREFFECTOR && (sprite[i].lotag == 12 || sprite[i].lotag == 3))
|
if (sprite[i].picnum == SECTOREFFECTOR && (sprite[i].lotag == 12 || sprite[i].lotag == 3))
|
||||||
{
|
{
|
||||||
int w;
|
int w;
|
||||||
|
@ -7967,9 +7968,9 @@ static void Keys2d3d(void)
|
||||||
// circlewall = -1;
|
// circlewall = -1;
|
||||||
// circlepoints = 7;
|
// circlepoints = 7;
|
||||||
|
|
||||||
for (i=0;i<MAXSECTORS;i++) sector[i].extra = -1;
|
for (i=MAXSECTORS-1;i>=0;i--) sector[i].extra = -1;
|
||||||
for (i=0;i<MAXWALLS;i++) wall[i].extra = -1;
|
for (i=MAXWALLS-1;i>=0;i--) wall[i].extra = -1;
|
||||||
for (i=0;i<MAXSPRITES;i++) sprite[i].extra = -1;
|
for (i=MAXSPRITES-1;i>=0;i--) sprite[i].extra = -1;
|
||||||
|
|
||||||
ExtPreLoadMap();
|
ExtPreLoadMap();
|
||||||
i = loadboard(f,(!pathsearchmode&&grponlymode?2:0),&posx,&posy,&posz,&ang,&cursectnum);
|
i = loadboard(f,(!pathsearchmode&&grponlymode?2:0),&posx,&posy,&posz,&ang,&cursectnum);
|
||||||
|
@ -8069,7 +8070,7 @@ void ExtCheckKeys(void)
|
||||||
if (shadepreview)
|
if (shadepreview)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (i=0;i<numsprites;i++)
|
for (i=numsprites-1;i>=0;i--)
|
||||||
if (sprite[i].picnum == SECTOREFFECTOR && (sprite[i].lotag == 12 || sprite[i].lotag == 3))
|
if (sprite[i].picnum == SECTOREFFECTOR && (sprite[i].lotag == 12 || sprite[i].lotag == 3))
|
||||||
{
|
{
|
||||||
int w;
|
int w;
|
||||||
|
|
|
@ -4693,6 +4693,12 @@ repeatcase:
|
||||||
if (Bstrcmp(setupfilename,"duke3d.cfg") == 0) // not set to something else via -cfg
|
if (Bstrcmp(setupfilename,"duke3d.cfg") == 0) // not set to something else via -cfg
|
||||||
{
|
{
|
||||||
char temp[BMAX_PATH];
|
char temp[BMAX_PATH];
|
||||||
|
j = Bmkdir(mod_dir, S_IRWXU);
|
||||||
|
if (j < 0 && errno != EEXIST)
|
||||||
|
{
|
||||||
|
initprintf("Unable to create directory for configuration files...\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Bstrcpy(temp,tempbuf);
|
Bstrcpy(temp,tempbuf);
|
||||||
CONFIG_WriteSetup();
|
CONFIG_WriteSetup();
|
||||||
Bsprintf(setupfilename,"%s/",mod_dir);
|
Bsprintf(setupfilename,"%s/",mod_dir);
|
||||||
|
|
Loading…
Reference in a new issue