… | |
… | |
660 | return 0; |
660 | return 0; |
661 | } |
661 | } |
662 | |
662 | |
663 | tmp->map = newmap; |
663 | tmp->map = newmap; |
664 | |
664 | |
|
|
665 | // in case the bullet has direction 0 we explode it in place. |
|
|
666 | // direction 0 is possible for instance when a poison cloud trap springs. |
|
|
667 | if (tmp->direction == 0) |
|
|
668 | { |
|
|
669 | if (tmp->other_arch |
|
|
670 | && (tmp = tmp->insert_at (tmp, op))) // insert before explode cleanly |
|
|
671 | explode_bullet (tmp); // explode object will/should remove tmp |
|
|
672 | else |
|
|
673 | tmp->destroy (); |
|
|
674 | |
|
|
675 | return 0; |
|
|
676 | } |
|
|
677 | |
665 | if (OB_TYPE_MOVE_BLOCK (tmp, GET_MAP_MOVE_BLOCK (tmp->map, tmp->x, tmp->y))) |
678 | if (OB_TYPE_MOVE_BLOCK (tmp, GET_MAP_MOVE_BLOCK (tmp->map, tmp->x, tmp->y))) |
666 | { |
679 | { |
667 | if (!QUERY_FLAG (tmp, FLAG_REFLECTING)) |
680 | if (!QUERY_FLAG (tmp, FLAG_REFLECTING)) |
668 | { |
681 | { |
669 | tmp->destroy (); |
682 | tmp->destroy (); |