mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Document SDL_abs vs. SDL_fabs
This commit is contained in:
@@ -4410,6 +4410,7 @@ void entityclass::applyfriction( int t, float xrate, float yrate )
|
||||
if (entities[t].vx > 6.00f) entities[t].vx = 6.0f;
|
||||
if (entities[t].vx < -6.00f) entities[t].vx = -6.0f;
|
||||
|
||||
// This should *not* be changed to use SDL_fabsf, which would cause noticable differences in physics.
|
||||
if (SDL_abs(entities[t].vx) < xrate) entities[t].vx = 0.0f;
|
||||
if (SDL_abs(entities[t].vy) < yrate) entities[t].vy = 0.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user