mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
e2081b565f
commit
a445b8486a
1 changed files with 1 additions and 1 deletions
|
@ -1560,7 +1560,6 @@ static qboolean Terr_SaveSection(heightmap_t *hm, hmsection_t *s, int sx, int sy
|
||||||
dblock_t dbh;
|
dblock_t dbh;
|
||||||
sx = sx & ~(SECTIONSPERBLOCK-1);
|
sx = sx & ~(SECTIONSPERBLOCK-1);
|
||||||
sy = sy & ~(SECTIONSPERBLOCK-1);
|
sy = sy & ~(SECTIONSPERBLOCK-1);
|
||||||
fname = Terr_DiskBlockName(hm, sx, sy);
|
|
||||||
|
|
||||||
//make sure its loaded before we replace the file
|
//make sure its loaded before we replace the file
|
||||||
for (y = 0; y < SECTIONSPERBLOCK; y++)
|
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);
|
FS_CreatePath(fname, FS_GAMEONLY);
|
||||||
f = FS_OpenVFS(fname, "wb", FS_GAMEONLY);
|
f = FS_OpenVFS(fname, "wb", FS_GAMEONLY);
|
||||||
if (!f)
|
if (!f)
|
||||||
|
|
Loading…
Reference in a new issue