| 7857 | } |
| 7858 | |
| 7859 | int16 cFodder::Map_PathCheck_CalculateTo(int16& pX1, int16& pY1, int16& pX2, int16& pY2) { |
| 7860 | pX1 >>= 4; |
| 7861 | pY1 >>= 4; |
| 7862 | pX2 >>= 4; |
| 7863 | pY2 >>= 4; |
| 7864 | |
| 7865 | int16 Data18 = 2; |
| 7866 | |
| 7867 | int16 RowBytes = mMapLoaded->getWidth(); |
| 7868 | RowBytes <<= 1; |
| 7869 | |
| 7870 | mCheckPattern_Position.mX = pX1; |
| 7871 | mCheckPattern_Position.mY = pY1; |
| 7872 | |
| 7873 | Map_PathCheck_Generate(pX1, pY1, pX2, pY2, Data18, RowBytes); |
| 7874 | |
| 7875 | return Map_PathCheck_CanPass(pX1); |
| 7876 | } |
| 7877 | |
| 7878 | void cFodder::Map_PathCheck_Generate(int16& pX1, int16& pY1, int16& pX2, int16& pY2, int16& pColumnWidth, int16& pRowWidth) { |
| 7879 | int16 X = pX2 - pX1; |