1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 03:42:48 +01:00

Replace tabs with spaces

This commit is contained in:
Sebastiaan de Schaetzen 2019-10-27 09:44:12 +01:00
parent 0b2ac30529
commit db1c405a18

View File

@ -272,10 +272,10 @@ void IngameState::tick(float dt) {
// The player cannot accelerate while exiting.
// He can, however, brake in the opposite direction of movement.
int velocitySign = vehicle->getVelocity() >= 0 ? 1 : -1;
int movementSign = movement.x >= 0 ? 1 : -1;
if (velocitySign == movementSign) {
movement.x = 0;
}
int movementSign = movement.x >= 0 ? 1 : -1;
if (velocitySign == movementSign) {
movement.x = 0;
}
}
player->setMoveDirection(movement);
} else {