… | |
… | |
176 | LOG (llevError, "%s: no alternative teleporters around (user %s).\n", |
176 | LOG (llevError, "%s: no alternative teleporters around (user %s).\n", |
177 | teleporter->debug_desc (), user->debug_desc ()); |
177 | teleporter->debug_desc (), user->debug_desc ()); |
178 | return 0; |
178 | return 0; |
179 | } |
179 | } |
180 | |
180 | |
181 | int k = find_free_spot (user, other_teleporter->map, other_teleporter->x, other_teleporter->y, 1, 9); |
181 | int k = find_free_spot (user, other_teleporter->map, other_teleporter->x, other_teleporter->y, 1, SIZEOFFREE1 + 1); |
182 | |
182 | |
183 | /* if k==-1, unable to find a free spot. If this is shop |
183 | /* if k==-1, unable to find a free spot. If this is shop |
184 | * mat that the player is using, find someplace to move |
184 | * mat that the player is using, find someplace to move |
185 | * the player - otherwise, player can get trapped in the shops |
185 | * the player - otherwise, player can get trapped in the shops |
186 | * that appear in random dungeons. We basically just make |
186 | * that appear in random dungeons. We basically just make |