mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01:00
Use SDL_abs() instead of libc abs() in Logic.cpp
There are other instances where SDL_abs() should be used, but I'm fine with at least fixing these for now.
This commit is contained in:
parent
71c8c54313
commit
c56cf009e7
1 changed files with 2 additions and 2 deletions
|
@ -890,7 +890,7 @@ void gamelogic()
|
|||
{
|
||||
if (obj.entities[i].isplatform)
|
||||
{
|
||||
if(abs(obj.entities[i].vx) < 0.000001f)
|
||||
if(SDL_abs(obj.entities[i].vx) < 0.000001f)
|
||||
{
|
||||
obj.removeblockat(obj.entities[i].xp, obj.entities[i].yp);
|
||||
|
||||
|
@ -916,7 +916,7 @@ void gamelogic()
|
|||
{
|
||||
if (obj.entities[ie].isplatform)
|
||||
{
|
||||
if(abs(obj.entities[ie].vy) < 0.000001f)
|
||||
if(SDL_abs(obj.entities[ie].vy) < 0.000001f)
|
||||
{
|
||||
obj.removeblockat(obj.entities[ie].xp, obj.entities[ie].yp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue