Yeah and why do you put a space after a comma sometimes but not always? If I had to change your indentation, to contrast, I'd do..
Code:
for(mainDwn = 0; mainDwn < dwnMax; ++mainDwn) //draw the map
{
for(mainAcr = 0; mainAcr < acrMax; ++mainAcr)
{
if(mapnode[mainDwn][mainAcr].Walkstate)
{
cR = 128; cG = 128; cB = 255;
}
else
{
cR = 0; cG = 0; cB = 255;
}
if(mapnode[mainDwn][mainAcr].STnode)
{
cR = 255; cG = 128; cB = 0;
}
if(mapnode[mainDwn][mainAcr].TGnode)
{
cR = 0; cG = 255; cB = 128;
}
/*for(countY = 0; countY < 14; ++countY)
{
for(countX = 0; countX < 14; ++countX)
{
DrawPixel(screen, boxAcr, boxDwn, cR, cG, cB);
++boxAcr;
}
boxAcr -= 14;
++boxDwn;
}*/
DrawBox(screen, mainDwn, mainAcr, cR, cG, cB);
//boxDwn -= 14;
//boxAcr += 15;
}
//boxAcr = 0;
//boxDwn += 15;
}
Putting those cR/cG/cB on the same line is fine unless they do more than simple assignment.
I wouldn't be happy with those variable names, and I doubt you will be either in a few years, but yeah, indentation is the topic.