aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-08 12:49:06 +0200
committersapier <Sapier at GMX dot net>2014-06-23 00:13:41 +0200
commit35ec3855f689cf2c6b1504a5813b7c3d9697ae14 (patch)
tree508d9d8ecd913c0dfe8442b66819e1e58aa7bbf6 /src/content_cao.h
parent56bf867874bda0a5fc4d34415984241a52083b3b (diff)
downloadminetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.tar.gz
minetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.tar.bz2
minetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.zip
Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector
Diffstat (limited to 'src/content_cao.h')
-rw-r--r--src/content_cao.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_cao.h b/src/content_cao.h
index 1e55babf2..bf27ed79a 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -102,6 +102,8 @@ private:
u8 m_last_light;
bool m_is_visible;
+ std::vector<u16> m_children;
+
public:
GenericCAO(IGameDef *gamedef, ClientEnvironment *env);