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

Comparing deliantra/server/random_maps/layout.C (file contents):
Revision 1.34 by root, Sat Nov 17 23:40:02 2018 UTC vs.
Revision 1.35 by root, Sat Dec 1 20:22:13 2018 UTC

153 { 0, -2, 0 }, { 0, -1, 1 }, { 0, 0, 1 }, { 0, 1, 1 }, { 0, 2, 0 }, 153 { 0, -2, 0 }, { 0, -1, 1 }, { 0, 0, 1 }, { 0, 1, 1 }, { 0, 2, 0 },
154 { 1, -2, 0 }, { 1, -1, 1 }, { 1, 0, 1 }, { 1, 1, 1 }, { 1, 2, 0 }, 154 { 1, -2, 0 }, { 1, -1, 1 }, { 1, 0, 1 }, { 1, 1, 1 }, { 1, 2, 0 },
155 { 2, -1, 0 }, { 2, 0, 0 }, { 2, 1, 0 }, 155 { 2, -1, 0 }, { 2, 0, 0 }, { 2, 1, 0 },
156 }; 156 };
157 157
158 for (int i = array_length (dds); i--; ) 158 for (int i = ecb_array_length (dds); i--; )
159 { 159 {
160 int nx = x + dds [i][0]; 160 int nx = x + dds [i][0];
161 int ny = y + dds [i][1]; 161 int ny = y + dds [i][1];
162 162
163 if (!IN_RANGE_EXC (nx, 0, w) || !IN_RANGE_EXC (ny, 0, h) || !data [nx][ny]) 163 if (!IN_RANGE_EXC (nx, 0, w) || !IN_RANGE_EXC (ny, 0, h) || !data [nx][ny])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines