1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-23 04:45:24 +02:00

Performance fix + SAO factorization

Original credits goes to @Rogier-5

* Merge common attributes between LuaEntitySAO & PlayerSAO to UnitSAO
* Make some functions const
* Improve some lists performance by returning const ref

Signed-off-by: Loic Blot <loic.blot@unix-experience.fr>
This commit is contained in:
Rogier
2017-01-10 04:39:45 +09:00
committed by Ner'zhul
parent ec30d49e02
commit 6647939403
8 changed files with 88 additions and 117 deletions

View File

@@ -130,7 +130,7 @@ public:
ClientActiveObject *getParent();
bool getCollisionBox(aabb3f *toset);
bool getCollisionBox(aabb3f *toset) const;
bool collideWithObjects();