This commit is contained in:
parent
376d81c387
commit
f9254b4f52
2 changed files with 3 additions and 9 deletions
|
@ -151,7 +151,7 @@ void CLayerCollision::render(DVECTOR &MapPos)
|
||||||
xoff=MapPos.vx&15;
|
xoff=MapPos.vx&15;
|
||||||
yoff=MapPos.vy&15;
|
yoff=MapPos.vy&15;
|
||||||
mapx=MapPos.vx/16;
|
mapx=MapPos.vx/16;
|
||||||
mapy=MapPos.vy/16;
|
mapy=MapPos.vy/16+4; // (pkg)
|
||||||
for(y=-yoff;y<(20*16)-yoff;y+=16)
|
for(y=-yoff;y<(20*16)-yoff;y+=16)
|
||||||
{
|
{
|
||||||
coll=&Map[mapx+(mapy*MapWidth)];
|
coll=&Map[mapx+(mapy*MapWidth)];
|
||||||
|
|
|
@ -162,14 +162,8 @@ void CBasePickup::render()
|
||||||
renderPickup(&pos);
|
renderPickup(&pos);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
DVECTOR ofs;
|
DrawLine(pos.vx-15,pos.vy-15,pos.vx+15,pos.vy+15,255,255,255,0);
|
||||||
int x,y;
|
DrawLine(pos.vx+15,pos.vy-15,pos.vx-15,pos.vy+15,255,255,255,0);
|
||||||
|
|
||||||
ofs=getRenderOffset();
|
|
||||||
x=Pos.vx-ofs.vx;
|
|
||||||
y=Pos.vy-ofs.vy;
|
|
||||||
DrawLine(x-15,y-15,x+15,y+15,255,255,255,0);
|
|
||||||
DrawLine(x+15,y-15,x-15,y+15,255,255,255,0);
|
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue