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.

Functions

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.

Parameters
layoutlayout to expand. Memory is free()d at the end, so pointer becomes invalid.
xsize
ysizelayout size.
Returns
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: