glColor3f( 1.0, 1.0, 1.0 );
glTexCoord2f( tx+textureTileSize, tz+textureTileSize );
- glVertex3f ( (x+1)*squareSize, 0.0, (z+1)*squareSize );
+ glVertex3f ( (x+1)*subTileWidth, 0.0, (z+1)*subTileWidth );
glTexCoord2f( tx+textureTileSize, tz );
- glVertex3f ( (x+1)*squareSize, 0.0, z*squareSize );
+ glVertex3f ( (x+1)*subTileWidth, 0.0, z*subTileWidth );
glTexCoord2f( tx, tz );
- glVertex3f ( x*squareSize, 0.0, z*squareSize );
+ glVertex3f ( x*subTileWidth, 0.0, z*subTileWidth );
glTexCoord2f( tx, tz+textureTileSize );
- glVertex3f ( x*squareSize, 0.0, (z+1)*squareSize );
+ glVertex3f ( x*subTileWidth, 0.0, (z+1)*subTileWidth );
}
}
}