Fixat med ljus

This commit is contained in:
Tobias Dahl
2014-03-13 03:52:19 +01:00
parent 7991efedf8
commit 461a039d87
8 changed files with 53 additions and 29 deletions
+1 -3
View File
@@ -3,6 +3,7 @@
Systems::PlayerSystem::PlayerSystem( World* world ) : System(world)
{
speed = 20;
}
void Systems::PlayerSystem::Update(double dt)
@@ -18,8 +19,6 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
if (input == nullptr)
return;
float speed = 20.0f;
auto name = m_World->GetProperty<std::string>(entity, "Name");
if (name == "Camera") {
@@ -60,7 +59,6 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
// TOUCHING THIS CODE MIGHT COUSE THE UNIVERSE TO IMPLODE, ALSO DRAGONS
}
}
name = m_World->GetProperty<std::string>(entity, "Name");
if (name == "PlayerShip")
{