Crossfire Server, Trunk
expand2x.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


char ** expand2x (char **layout, int xsize, int ysize)

Detailed Description

Expands a layout by 2x in each dimension.

Definition in file expand2x.h.

Function Documentation

◆ expand2x()

char** expand2x ( char **  layout,
int  xsize,
int  ysize 

Expands the layout be a factor 2. Doors and walls are taken care of.

layoutlayout to expand. Memory is free()d at the end, so pointer becomes invalid.
ysizelayout size.
new layout. Must be free()d by caller.

Definition at line 43 of file expand2x.cpp.

Referenced by layoutgen().

+ Here is the caller graph for this function: