1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-24 15:32:30 +01:00

fix velocity direction after swan dive

This commit is contained in:
XProger 2018-11-24 08:42:53 +03:00
parent 87126db2ca
commit 611bac3ef7

View File

@ -2640,7 +2640,7 @@ struct Lara : Character {
}
if (state == STATE_SWAN_DIVE || state == STATE_FAST_DIVE) {
angle.x = (state == STATE_SWAN_DIVE ? -45.0f : 85.0f) * DEG2RAD;
angle.x = (state == STATE_SWAN_DIVE ? -45.0f : -85.0f) * DEG2RAD;
pos.y += 100.0f;
velocity.y *= 2.0f;
game->waterDrop(pos, 128.0f, 0.2f);