fixed compile errors.

This commit is contained in:
Christoph Oelckers 2024-01-07 12:28:21 +01:00
parent 0e51c5832d
commit ea65768e0b
2 changed files with 2 additions and 3 deletions

View file

@ -1169,7 +1169,6 @@ bool MapLoader::LoadNodes (MapData * map)
int k;
nodetype *mn;
node_t* no;
uint16_t* used;
int lumplen = map->Size(ML_NODES);
int maxss = map->Size(ML_SSECTORS) / sizeof(subsectortype);

View file

@ -64,10 +64,10 @@ void WarpBuffer(TYPE *Pixels, const TYPE *source, int width, int height, int xmu
if (yf < 0) yf += height;
int yt = yf;
const TYPE *sourcep = Pixels + (x + ymask * x);
TYPE *dest = buffer;
TYPE *dest = buffer.data();
for (yt = height; yt; yt--, yf = (yf + 1) % height)
*dest++ = sourcep[yf];
memcpy(Pixels + (x + ymask*x), buffer, height * sizeof(TYPE));
memcpy(Pixels + (x + ymask*x), buffer.data(), height * sizeof(TYPE));
}
}
else if (warptype == 2)