I've downloaded a recent trunk, and one of the things I've noticed is a 54-line function called structWallScan around line 1275 of structure.c
The comment above it says:
Code: Select all
/*****************************************************************************/
/*
* All this wall type code is horrible, but I really can't think of a better way to do it.
* John.
*/Code: Select all
static SDWORD structWallScan(BOOL aWallPresent[5][5], SDWORD x,SDWORD y)
{
if (aWallPresent[x-1][y]||aWallPresent[x+1][y])
{
if (aWallPresent[x][y-1]||aWallPresent[x][y+1])
return WALL_CORNER;
else
return WALL_HORIZ;
}
else
return WALL_VERT;
}By the way, I'm also trying to generate a tech tree for 2.1, but I don't know where to find documentation on the columns of the text files in data/base/stats/ and data/mp/stats/. Edit: Nevermind, I found it.

