… | |
… | |
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. |
… | |
… | |
518 | for (;;) |
518 | for (;;) |
519 | cfperl_main (); |
519 | cfperl_main (); |
520 | } |
520 | } |
521 | #endif |
521 | #endif |
522 | |
522 | |
|
|
523 | #if 0 |
|
|
524 | int xyzzy () |
|
|
525 | { |
|
|
526 | return rndm(8); |
|
|
527 | } |
|
|
528 | |
|
|
529 | void xyzzy (object_ptr &a, object_ptr &o) |
|
|
530 | { |
|
|
531 | asm volatile ("int3"); |
|
|
532 | a = o; |
|
|
533 | asm volatile ("int3"); |
|
|
534 | } |
|
|
535 | #endif |
|
|
536 | |