ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/expand2x.C
(Generate patch)

Comparing deliantra/server/random_maps/expand2x.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:03 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * Expands a layout by 2x in each dimension. 2 * Expands a layout by 2x in each dimension.
3 * H. S. Teoh 3 * H. S. Teoh
4 * -------------------------------------------------------------------------- 4 * --------------------------------------------------------------------------
5 * $Id: expand2x.C,v 1.1 2006/08/13 17:16:03 elmex Exp $ 5 * $Id: expand2x.C,v 1.2 2006/08/29 08:01:36 root Exp $
6 * 6 *
7 * ALGORITHM 7 * ALGORITHM
8 * 8 *
9 * ... (TBW) 9 * ... (TBW)
10 */ 10 */
119/* newlayout[i*2][j*2+1] = '#'; */ 119/* newlayout[i*2][j*2+1] = '#'; */
120 newlayout[i*2][j*2+1] = layout[i][j+1]; 120 newlayout[i*2][j*2+1] = layout[i][j+1];
121 } 121 }
122 122
123 if (wall_pattern==7) { /* if orig layout is a 2x2 wall block, 123 if (wall_pattern==7) { /* if orig layout is a 2x2 wall block,
124 * we fill the result with walls. */ 124 * we fill the result with walls. */
125 newlayout[i*2+1][j*2+1] = '#'; 125 newlayout[i*2+1][j*2+1] = '#';
126 } 126 }
127 } 127 }
128} 128}
129 129

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines