heres what im trying to do. basically each area cannot overlap rooms, do maintain some sort of 3d structure. so each room has coordinates, x,y, and z. every time a room is created without linking to an existing room in the area(eg, the first room created for an area) its coor's are 0,0,0 and the area gets a new 'map'. when this current map(set of coordinates that are linked) connects to another 'map' in the area, the maps compare and see that rooms dont cross over, and if it works, one map is deleted, linked and given new coordinates to fit with the other map. i hope this makes sense.

my problem is assigning each area its 'maps'...im sure its probably simple but im just not getting it...anyway, heres how im trying to do it:

in merc.h i have my struct:

#define MAX_X   500
#define MAX_Y   500
#define MAX_Z   500


struct  map_type
{
        int             max_x;
        int             max_y;
        int             max_z;
        int             min_x;
        int             min_y;
        int             min_z;
        bool    room_exists[MAX_X][MAX_Y][MAX_Z];
        int             vnum[MAX_X][MAX_Y][MAX_Z];
};

by the way, is there a better way of doing the room_exists[x][y][z] thing so its not [500][500][500]? oh yeah, and will this work for negatives as well? say x:-5,y:20,z:-9. im probably foolish for suggesting this but i tried:

bool   ***room_exists;

also added:
typedef struct  map_type                MAP_DATA;

anyway, in the area_data struct in merc.h i just added(i have the

        MAP_DATA *      map[20];

i figure this means each room has 20 map slots(is there a way to have as many as needed, like in the x,y,z question above?)

whenever i compile, it goes cleanly, but always(whether or not i did *** or [][][]) it says this after:

Debug/WinRot.exe : warning LNK4084: total image size 1813544960 exceeds max (268435456); image may not run



any help is appreciated!

_________________________________________________________________
Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNĀ® Premium right now and get the first two months FREE*.

Reply via email to