Merge remote-tracking branch 'origin/master' into AssaultDash

# Conflicts:
#	src/Game/Systems/PlayerMovementSystem.cpp
This commit is contained in:
verysecrethero
2016-02-03 09:52:54 +01:00
44 changed files with 544 additions and 154 deletions
+7 -1
View File
@@ -81,7 +81,13 @@ void PlayerMovementSystem::Update(double dt)
}
//you cant jump and dash at the same time - since there is no friction in the air and we would thus dash much further in the air
if (!m_PlayerIsDashing && controller->Jumping() && !controller->Crouching() && velocity.y == 0.f) {
if (!m_PlayerIsDashing && controller->Jumping() && !controller->Crouching() && (velocity.y == 0.f || !controller->DoubleJumping())) {
if (velocity.y == 0.f) {
controller->SetDoubleJumping(false);
}
else {
controller->SetDoubleJumping(true);
}
velocity.y += 4.f;
}