From f71953077d2412c4542e616cc9748217dfe046c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Tue, 29 Sep 2020 22:53:12 +0300 Subject: Population and many small classes done, mouse AUX buttons, Frontend, Hud, fixes --- src/control/PathFind.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/control/PathFind.h') diff --git a/src/control/PathFind.h b/src/control/PathFind.h index 013d9d31..820d0b86 100644 --- a/src/control/PathFind.h +++ b/src/control/PathFind.h @@ -6,6 +6,7 @@ class CVehicle; class CPtrList; #define LANE_WIDTH 5.0f +#define WIDTH_TO_PED_NODE_WIDTH (31.f/(500.f * 8.f)) enum { @@ -89,7 +90,7 @@ struct CPathNode float GetZ(void) { return z/8.0f; } bool HasDivider(void) { return width != 0; } float GetDividerWidth(void) { return width/(2*8.0f); } - float GetPedNodeWidth(void) { return width*(31.f/(500.f * 8.f)); } + float GetPedNodeWidth(void) { return width*WIDTH_TO_PED_NODE_WIDTH; } CPathNode *GetPrev(void); CPathNode *GetNext(void); void SetPrev(CPathNode *node); -- cgit v1.2.3