Crossfire Server, Trunk  R20513
Functions
expand2x.h File Reference

Expands a layout by 2x in each dimension. More...

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)
 Expands the layout be a factor 2. More...
 

Detailed Description

Expands a layout by 2x in each dimension.

Definition in file expand2x.h.

Function Documentation

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.c.

Referenced by layoutgen().

Here is the caller graph for this function: