mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 21:11:52 +00:00
fixed compile errors.
This commit is contained in:
parent
0e51c5832d
commit
ea65768e0b
2 changed files with 2 additions and 3 deletions
|
@ -1169,7 +1169,6 @@ bool MapLoader::LoadNodes (MapData * map)
|
||||||
int k;
|
int k;
|
||||||
nodetype *mn;
|
nodetype *mn;
|
||||||
node_t* no;
|
node_t* no;
|
||||||
uint16_t* used;
|
|
||||||
int lumplen = map->Size(ML_NODES);
|
int lumplen = map->Size(ML_NODES);
|
||||||
int maxss = map->Size(ML_SSECTORS) / sizeof(subsectortype);
|
int maxss = map->Size(ML_SSECTORS) / sizeof(subsectortype);
|
||||||
|
|
||||||
|
|
|
@ -64,10 +64,10 @@ void WarpBuffer(TYPE *Pixels, const TYPE *source, int width, int height, int xmu
|
||||||
if (yf < 0) yf += height;
|
if (yf < 0) yf += height;
|
||||||
int yt = yf;
|
int yt = yf;
|
||||||
const TYPE *sourcep = Pixels + (x + ymask * x);
|
const TYPE *sourcep = Pixels + (x + ymask * x);
|
||||||
TYPE *dest = buffer;
|
TYPE *dest = buffer.data();
|
||||||
for (yt = height; yt; yt--, yf = (yf + 1) % height)
|
for (yt = height; yt; yt--, yf = (yf + 1) % height)
|
||||||
*dest++ = sourcep[yf];
|
*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)
|
else if (warptype == 2)
|
||||||
|
|
Loading…
Reference in a new issue