… | |
… | |
183 | |
183 | |
184 | /* Find all other teleporters within range. This range |
184 | /* Find all other teleporters within range. This range |
185 | * should really be setable by some object attribute instead of |
185 | * should really be setable by some object attribute instead of |
186 | * using hard coded values. |
186 | * using hard coded values. |
187 | */ |
187 | */ |
188 | unordered_mapwalk (teleporter, -5, -5, 5, 5) |
188 | unordered_mapwalk (mapwalk_buf, teleporter, -5, -5, 5, 5) |
189 | { |
189 | { |
190 | mapspace &ms = m->at (nx, ny); |
190 | mapspace &ms = m->at (nx, ny); |
191 | |
191 | |
192 | for (object *tmp = ms.top; tmp; tmp = tmp->below) |
192 | for (object *tmp = ms.top; tmp; tmp = tmp->below) |
193 | if (tmp->type == tele_type) |
193 | if (tmp->type == tele_type) |