diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-05 11:51:24 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-05 11:51:24 -0500 |
commit | da3df061699203eccc9a0c98becaee3ce8050a4f (patch) | |
tree | e5082da630d73abc1ecc0b0367d420fbf245126c /src/entity_manager.cpp | |
parent | a855ce0262e17b85e8670c511acf179ebddd24fe (diff) | |
download | therapy-da3df061699203eccc9a0c98becaee3ce8050a4f.tar.gz therapy-da3df061699203eccc9a0c98becaee3ce8050a4f.tar.bz2 therapy-da3df061699203eccc9a0c98becaee3ce8050a4f.zip |
Whitespace changes
Diffstat (limited to 'src/entity_manager.cpp')
-rw-r--r-- | src/entity_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/entity_manager.cpp b/src/entity_manager.cpp index 4bdfe8a..9ad758b 100644 --- a/src/entity_manager.cpp +++ b/src/entity_manager.cpp | |||
@@ -10,13 +10,13 @@ std::set<int> EntityManager::getEntitiesWithComponents<>(std::set<std::type_inde | |||
10 | { | 10 | { |
11 | return cachedComponents[componentTypes]; | 11 | return cachedComponents[componentTypes]; |
12 | } | 12 | } |
13 | 13 | ||
14 | std::set<int>& cache = cachedComponents[componentTypes]; | 14 | std::set<int>& cache = cachedComponents[componentTypes]; |
15 | for (auto& entity : entities) | 15 | for (auto& entity : entities) |
16 | { | 16 | { |
17 | EntityData& data = entity.second; | 17 | EntityData& data = entity.second; |
18 | bool cacheEntity = true; | 18 | bool cacheEntity = true; |
19 | 19 | ||
20 | for (auto& componentType : componentTypes) | 20 | for (auto& componentType : componentTypes) |
21 | { | 21 | { |
22 | if (data.components.count(componentType) == 0) | 22 | if (data.components.count(componentType) == 0) |
@@ -25,13 +25,13 @@ std::set<int> EntityManager::getEntitiesWithComponents<>(std::set<std::type_inde | |||
25 | break; | 25 | break; |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | if (cacheEntity) | 29 | if (cacheEntity) |
30 | { | 30 | { |
31 | cache.insert(entity.first); | 31 | cache.insert(entity.first); |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | return cache; | 35 | return cache; |
36 | } | 36 | } |
37 | 37 | ||