m_direction(i).type is type DAT_FILE, but I don't understand why. m_direction should be the datafile, where m_direction(i).dat should be the first bitmap inside this nested datafile.
That comes back with WEST, which is the right datafile. hmmm
Gives me the name of the first bitmap. But yet when I do:
temp = (BITMAP*)m_direction<i>.dat;
the width is like 21963458, where the real image width is 128
for(i=0;m_direction<i>.type != DAT_END;i++)
That is looping through the outer datafile. It's looping through each direction datafile, not inside the direction datafile. I know this cause if I start to load the last direction in the datafile it iterates once and exits loop, and if I start at the first direction it loops however many direction there are. Since m_direction is the direction datafile, I need to loop through that datafile.
-West.dat "WEST" (=m_direction)
So if West.dat is m_direction wouldn't m_direction(i).dat be 00.bmp?