forked from fte/fteqw
1
0
Fork 0

fix terrain not saving properly

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4564 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-12-10 20:52:28 +00:00
parent e2081b565f
commit a445b8486a
1 changed files with 1 additions and 1 deletions

View File

@ -1560,7 +1560,6 @@ static qboolean Terr_SaveSection(heightmap_t *hm, hmsection_t *s, int sx, int sy
dblock_t dbh;
sx = sx & ~(SECTIONSPERBLOCK-1);
sy = sy & ~(SECTIONSPERBLOCK-1);
fname = Terr_DiskBlockName(hm, sx, sy);
//make sure its loaded before we replace the file
for (y = 0; y < SECTIONSPERBLOCK; y++)
@ -1573,6 +1572,7 @@ static qboolean Terr_SaveSection(heightmap_t *hm, hmsection_t *s, int sx, int sy
}
}
fname = Terr_DiskBlockName(hm, sx, sy);
FS_CreatePath(fname, FS_GAMEONLY);
f = FS_OpenVFS(fname, "wb", FS_GAMEONLY);
if (!f)