This commit is contained in:
Paul 2001-02-22 15:24:38 +00:00
parent 376d81c387
commit f9254b4f52
2 changed files with 3 additions and 9 deletions

View file

@ -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)];

View file

@ -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);
*/ */
} }