diff options
author | Northstar <northstar@northstar.tf> | 2024-08-23 23:26:57 +0200 |
---|---|---|
committer | Northstar <northstar@northstar.tf> | 2024-08-23 23:26:57 +0200 |
commit | 5b2c608b22ba272e4ab1a45adc1f43b60b1aea79 (patch) | |
tree | e827952268ac29f0c08f0891ddba09af1f089e5e /primedev/server | |
parent | d333a966ed961fca02d80212fe1384cf8600b9cb (diff) | |
download | NorthstarLauncher-5b2c608b22ba272e4ab1a45adc1f43b60b1aea79.tar.gz NorthstarLauncher-5b2c608b22ba272e4ab1a45adc1f43b60b1aea79.zip |
Format project
Diffstat (limited to 'primedev/server')
-rw-r--r-- | primedev/server/ai_navmesh.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/primedev/server/ai_navmesh.h b/primedev/server/ai_navmesh.h index 65529f7a..c3339110 100644 --- a/primedev/server/ai_navmesh.h +++ b/primedev/server/ai_navmesh.h @@ -207,28 +207,16 @@ struct dtPoly Vector3 org; // /// Sets the user defined area id. [Limit: < #DT_MAX_AREAS] - inline void setArea(unsigned char a) - { - areaAndtype = (areaAndtype & 0xc0) | (a & 0x3f); - } + inline void setArea(unsigned char a) { areaAndtype = (areaAndtype & 0xc0) | (a & 0x3f); } /// Sets the polygon type. (See: #dtPolyTypes.) - inline void setType(unsigned char t) - { - areaAndtype = (areaAndtype & 0x3f) | (t << 6); - } + inline void setType(unsigned char t) { areaAndtype = (areaAndtype & 0x3f) | (t << 6); } /// Gets the user defined area id. - inline unsigned char getArea() const - { - return areaAndtype & 0x3f; - } + inline unsigned char getArea() const { return areaAndtype & 0x3f; } /// Gets the polygon type. (See: #dtPolyTypes) - inline unsigned char getType() const - { - return areaAndtype >> 6; - } + inline unsigned char getType() const { return areaAndtype >> 6; } }; /// Defines a link between polygons. |