From 45d04950c17114d3c874079d095a58f55bd13ac1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 8 Jun 2014 04:54:04 +0000 Subject: [PATCH] fix defaultgroundshader issue. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4681 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_heightmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_heightmap.c b/engine/gl/gl_heightmap.c index 376bdd9a5..758821217 100644 --- a/engine/gl/gl_heightmap.c +++ b/engine/gl/gl_heightmap.c @@ -4391,9 +4391,9 @@ void Terr_ParseEntityLump(char *data, heightmap_t *heightmap) else if (!strcmp("defaultgroundheight", key)) heightmap->defaultgroundheight = atof(com_token); else if (!strcmp("defaultgroundtexture", key)) - Q_strncpyz(heightmap->defaultgroundtexture, key, sizeof(heightmap->defaultgroundtexture)); + Q_strncpyz(heightmap->defaultgroundtexture, com_token, sizeof(heightmap->defaultgroundtexture)); else if (!strcmp("defaultwatertexture", key)) - Q_strncpyz(heightmap->defaultwatershader, key, sizeof(heightmap->defaultwatershader)); + Q_strncpyz(heightmap->defaultwatershader, com_token, sizeof(heightmap->defaultwatershader)); else if (!strcmp("tiles", key)) { char *d;