Fixes a texture bug.

git-svn-id: https://svn.eduke32.com/eduke32@1261 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-03-24 09:37:30 +00:00
parent 63a823abfe
commit 8a2916c2cc

View file

@ -1887,10 +1887,10 @@ static void polymer_updatewall(int16_t wallnum)
memcpy(&w->wall.buffer[10], &s->ceil.buffer[(wal->point2 - sec->wallptr) * 5], sizeof(GLfloat) * 3); memcpy(&w->wall.buffer[10], &s->ceil.buffer[(wal->point2 - sec->wallptr) * 5], sizeof(GLfloat) * 3);
memcpy(&w->wall.buffer[15], &s->ceil.buffer[(wallnum - sec->wallptr) * 5], sizeof(GLfloat) * 3); memcpy(&w->wall.buffer[15], &s->ceil.buffer[(wallnum - sec->wallptr) * 5], sizeof(GLfloat) * 3);
if (wal->cstat & 32) if (wal->nextsector == -1)
curpicnum = walloverpicnum;
else
curpicnum = wallpicnum; curpicnum = wallpicnum;
else
curpicnum = walloverpicnum;
polymer_getbuildmaterial(&w->wall.material, curpicnum, wal->pal, wal->shade); polymer_getbuildmaterial(&w->wall.material, curpicnum, wal->pal, wal->shade);