From f7fafabba0366031edc2c8bca4560772b69bb2ec Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 15 Nov 2022 15:54:21 +0100 Subject: [PATCH] - reordered walltype to reduce its size. --- source/core/maptypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/maptypes.h b/source/core/maptypes.h index 1493b74d0..bdf87d760 100644 --- a/source/core/maptypes.h +++ b/source/core/maptypes.h @@ -251,7 +251,6 @@ struct walltype // extensions not from the binary map format. angle_t clipangle; - double length; // cached value to avoid calling sqrt repeatedly. uint16_t portalnum; uint8_t portalflags; @@ -260,6 +259,7 @@ struct walltype // Blood is the only game which extends the wall struct. Blood::XWALL* _xw; DVector2 baseWall; + double length; // cached value to avoid calling sqrt repeatedly. int xpan() const { return int(xpan_); } int ypan() const { return int(ypan_); }