… | |
… | |
140 | // 12 has been experimentally :( determined ot be a lot more stable |
140 | // 12 has been experimentally :( determined ot be a lot more stable |
141 | // than 11 or 10, leading to the assumption that something inherently |
141 | // than 11 or 10, leading to the assumption that something inherently |
142 | // needs a minimum size of at least 12 |
142 | // needs a minimum size of at least 12 |
143 | #define MIN_RANDOM_MAP_SIZE 12 |
143 | #define MIN_RANDOM_MAP_SIZE 12 |
144 | |
144 | |
|
|
145 | // we often use signed chars for coordinates (and U8 for distances) |
|
|
146 | #define MAX_RANDOM_MAP_SIZE 120 |
|
|
147 | |
145 | // reference |
148 | // reference |
146 | // |
149 | // |
147 | // \0 floor only |
150 | // \0 floor only |
148 | // # wall |
151 | // # wall |
149 | // D door |
152 | // D door |
… | |
… | |
192 | ::swap (layout.w , w ); |
195 | ::swap (layout.w , w ); |
193 | ::swap (layout.h , h ); |
196 | ::swap (layout.h , h ); |
194 | } |
197 | } |
195 | }; |
198 | }; |
196 | |
199 | |
197 | // basically a layoutdata point - do not use in new code |
200 | // basically a layoutdata pointer - do not use in new code |
198 | struct Layout |
201 | struct Layout |
199 | { |
202 | { |
200 | LayoutData *ptr; |
203 | LayoutData *ptr; |
201 | |
204 | |
202 | Layout () |
205 | Layout () |