--- deliantra/server/crossedit/Edit.c 2006/05/07 08:19:29 1.2 +++ deliantra/server/crossedit/Edit.c 2006/05/07 13:24:54 1.3 @@ -52,7 +52,7 @@ * moved to Edit.c from common/map.c since Edit.c is the only file that uses it. */ -static void copy_map(mapstruct *m1, mapstruct *m2) { +void copy_map(mapstruct *m1, mapstruct *m2) { int x,y; memcpy(m2, m1, sizeof(mapstruct)); @@ -73,7 +73,7 @@ * dx : positive translate to right * dy : positive translate to down */ -static mapstruct *MapMoveScrollResize(mapstruct *source, +mapstruct *MapMoveScrollResize(mapstruct *source, int width, int height, int dx, int dy) { mapstruct *target; @@ -162,13 +162,13 @@ } -static object * MapGetRealObject (mapstruct * emap, int x, int y, int z) +object * MapGetRealObject (mapstruct * emap, int x, int y, int z) { object *tmp = MapGetObjectZ (emap, x, y, z); return tmp ? (tmp->head ? tmp->head : tmp) : tmp; } -static int MapInsertObjectZ(mapstruct *emap,object *o,int x, int y, int z) +int MapInsertObjectZ(mapstruct *emap,object *o,int x, int y, int z) { object *op, *above, *below; @@ -211,7 +211,7 @@ return (0); } -static int MapObjectOut (mapstruct *target, object *obj, int x, int y) { +int MapObjectOut (mapstruct *target, object *obj, int x, int y) { object *tmp; for(tmp = obj; tmp; tmp = tmp->more) if(OUT_OF_REAL_MAP(target,x + tmp->x,y + tmp->y)) return 1;