inverse of cvt_to_abscoord; turn an absolute svl.level.locations coordinate * into one relative to the current map or room. */
| 4790 | /* inverse of cvt_to_abscoord; turn an absolute svl.level.locations coordinate |
| 4791 | * into one relative to the current map or room. */ |
| 4792 | void |
| 4793 | cvt_to_relcoord(coordxy *x, coordxy *y) |
| 4794 | { |
| 4795 | if (gc.coder && gc.coder->croom) { |
| 4796 | *x -= gc.coder->croom->lx; |
| 4797 | *y -= gc.coder->croom->ly; |
| 4798 | } else { |
| 4799 | *x -= gx.xstart; |
| 4800 | *y -= gy.ystart; |
| 4801 | } |
| 4802 | } |
| 4803 | |
| 4804 | DISABLE_WARNING_UNREACHABLE_CODE |
| 4805 |
no outgoing calls
no test coverage detected