… | |
… | |
147 | |
147 | |
148 | // remove, so stupid ob_locked does not trigger a failure |
148 | // remove, so stupid ob_locked does not trigger a failure |
149 | remove (); |
149 | remove (); |
150 | |
150 | |
151 | /* try to find a spot for the player */ |
151 | /* try to find a spot for the player */ |
152 | if (ob_blocked (this, newmap, x, y)) |
152 | if (blocked (newmap, x, y)) |
153 | { /* First choice blocked */ |
153 | { /* First choice blocked */ |
154 | /* We try to find a spot for the player, starting closest in. |
154 | /* We try to find a spot for the player, starting closest in. |
155 | * We could use find_first_free_spot, but that doesn't randomize it at all, |
155 | * We could use find_first_free_spot, but that doesn't randomize it at all, |
156 | * So for example, if the north space is free, you would always end up there even |
156 | * So for example, if the north space is free, you would always end up there even |
157 | * if other spaces around are available. |
157 | * if other spaces around are available. |