summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-09 19:42:18 +0200
committeraap <aap@papnet.eu>2019-08-09 19:42:18 +0200
commit0bd681abc514d5a3627edea40b24347696ac8908 (patch)
treecbfcb61874c34a4e44ad1151cf44fc13650f1197 /src/core
parentMerge pull request #184 from erorcun/erorcun (diff)
downloadre3-0bd681abc514d5a3627edea40b24347696ac8908.tar
re3-0bd681abc514d5a3627edea40b24347696ac8908.tar.gz
re3-0bd681abc514d5a3627edea40b24347696ac8908.tar.bz2
re3-0bd681abc514d5a3627edea40b24347696ac8908.tar.lz
re3-0bd681abc514d5a3627edea40b24347696ac8908.tar.xz
re3-0bd681abc514d5a3627edea40b24347696ac8908.tar.zst
re3-0bd681abc514d5a3627edea40b24347696ac8908.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/General.h1
-rw-r--r--src/core/config.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/core/General.h b/src/core/General.h
index 7c0c9562..fe277689 100644
--- a/src/core/General.h
+++ b/src/core/General.h
@@ -74,6 +74,7 @@ public:
return result;
}
+ // Returns an angle such that x2/y2 looks at x1/y1 with its forward vector if rotated by that angle
static float GetRadianAngleBetweenPoints(float x1, float y1, float x2, float y2)
{
float x = x2 - x1;
diff --git a/src/core/config.h b/src/core/config.h
index 52d1dab8..8eda6187 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -33,6 +33,12 @@ enum Config {
NUMTEMPOBJECTS = 30,
+ // Path data
+ NUM_PATHNODES = 4930,
+ NUM_CARPATHLINKS = 2076,
+ NUM_MAPOBJECTS = 1250,
+ NUM_PATHCONNECTIONS = 10260,
+
// Link list lengths
// TODO: alpha list
NUMCOLCACHELINKS = 200,