1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Physics overrides: Move values to a common struct (#12591)

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
SmallJoker 2022-08-12 11:17:02 +02:00 committed by GitHub
parent df1d215f48
commit c8ee755c05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 81 additions and 71 deletions

View file

@ -875,7 +875,7 @@ void ParticleManager::addNodeParticle(IGameDef *gamedef,
);
p.acc = v3f(
0.0f,
-player->movement_gravity * player->physics_override_gravity / BS,
-player->movement_gravity * player->physics_override.gravity / BS,
0.0f
);
p.pos = v3f(