diff options
Diffstat (limited to 'engines/sci/engine/kpathing.cpp')
-rw-r--r-- | engines/sci/engine/kpathing.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index 667f77f126..937b1cfc2f 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -285,13 +285,6 @@ struct PathfindingState { static Common::Point readPoint(SegmentRef list_r, int offset) { Common::Point point; -#ifdef ENABLE_SCI32 - if (getSciVersion() >= SCI_VERSION_2) { - point.x = READ_UINT16(list_r.raw + offset * POLY_POINT_SIZE + 0); - point.y = READ_UINT16(list_r.raw + offset * POLY_POINT_SIZE + 2); - } else -#endif - if (list_r.isRaw) { // dynmem blocks are raw point.x = (int16)READ_SCIENDIAN_UINT16(list_r.raw + offset * POLY_POINT_SIZE); point.y = (int16)READ_SCIENDIAN_UINT16(list_r.raw + offset * POLY_POINT_SIZE + 2); @@ -303,12 +296,6 @@ static Common::Point readPoint(SegmentRef list_r, int offset) { } static void writePoint(SegmentRef ref, int offset, const Common::Point &point) { -#ifdef ENABLE_SCI32 - if (getSciVersion() >= SCI_VERSION_2) { - WRITE_UINT16(ref.raw + offset * POLY_POINT_SIZE + 0, point.x); - WRITE_UINT16(ref.raw + offset * POLY_POINT_SIZE + 2, point.y); - } else -#endif if (ref.isRaw) { // dynmem blocks are raw WRITE_SCIENDIAN_UINT16(ref.raw + offset * POLY_POINT_SIZE, point.x); WRITE_SCIENDIAN_UINT16(ref.raw + offset * POLY_POINT_SIZE + 2, point.y); |