All pastes #979605 Raw Edit

Stuff

public cpp v1 · immutable
·published 2008-04-10 13:48 UTC
rendered paste body
if (hackStatus[16] == true) {// Number of polygons in the map.int polynum = read4bytes(NUMBERPOLYS);// Coords for the polygon, x1,y1,x2,y2,x3,y3.float px1;float px2;float px3;float py1;float py2;float py3;// Drawtriangle loop.// POLYDIFF is always 0x1c.for ( int i = 1; i <= polynum; i++ ) {        px1 = readfloat((POLYGONS + (0x54 * (i-1))));        py1 = readfloat(((POLYGONS + (0x54 * (i-1))) + + 0x4));        px2 = readfloat(((POLYGONS + (0x54 * (i-1))) + 0x1C));        py2 = readfloat(((POLYGONS + (0x54 * (i-1))) + 0x20));        px3 = readfloat(((POLYGONS + (0x54 * (i-1))) + 0x38));        py3 = readfloat(((POLYGONS + (0x54 * (i-1))) + 0x3C));		drawtriangleonmap(polygonColor[getpolytype(i)] ,px1,py1,px2,py2,px3,py3,m_pD3Ddev);	}}