Skip to content

Commit

Permalink
Rename m_skyEntities to m_entities for consistency
Browse files Browse the repository at this point in the history
All other systems just use m_entities.
  • Loading branch information
bkloster committed May 17, 2013
1 parent 43c16da commit d54c4c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ogre/sky_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct SkySystem::Implementation {

EntityFilter<
Optional<SkyPlaneComponent>
> m_skyEntities;
> m_entities;
};


Expand All @@ -99,13 +99,13 @@ SkySystem::init(
OgreEngine* ogreEngine = dynamic_cast<OgreEngine*>(engine);
assert(ogreEngine != nullptr && "System requires an OgreEngine");
m_impl->m_sceneManager = ogreEngine->sceneManager();
m_impl->m_skyEntities.setEngine(engine);
m_impl->m_entities.setEngine(engine);
}


void
SkySystem::shutdown() {
m_impl->m_skyEntities.setEngine(nullptr);
m_impl->m_entities.setEngine(nullptr);
m_impl->m_sceneManager->setSkyBoxEnabled(false);
m_impl->m_sceneManager->setSkyDomeEnabled(false);
m_impl->m_sceneManager->setSkyPlaneEnabled(false);
Expand All @@ -116,7 +116,7 @@ SkySystem::shutdown() {

void
SkySystem::update(int) {
for (auto& value : m_impl->m_skyEntities) {
for (auto& value : m_impl->m_entities) {
SkyPlaneComponent* plane = std::get<0>(value.second);
if (plane and plane->m_properties.hasChanges()) {
const SkyPlaneComponent::Properties& properties = plane->m_properties.stable();
Expand Down
3 changes: 0 additions & 3 deletions src/ogre/sky_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include <OgrePlane.h>
#include <OgreResourceGroupManager.h>


#include <iostream>

namespace luabind {
class scope;
}
Expand Down

0 comments on commit d54c4c8

Please sign in to comment.