From f4c8ac01400b986f80e588859d2bd29e1c4b52f5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 12 Oct 2022 15:11:07 +0200 Subject: [PATCH] - made AnimSet's vel parameter an actual double. This does not affect any outcome, it just avoids pointless type conversions. --- source/games/sw/src/game.h | 4 ++-- source/games/sw/src/sector.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/sw/src/game.h b/source/games/sw/src/game.h index 335b8c1a2..743305bd1 100644 --- a/source/games/sw/src/game.h +++ b/source/games/sw/src/game.h @@ -1609,8 +1609,8 @@ void RefreshInfoLine(PLAYER* pp); void DoAnim(int numtics); void AnimDelete(int animtype, int animindex, DSWActor*); short AnimGetGoal(int animtype, int animindex, DSWActor*); -int AnimSet(int animtype, int animindex, DSWActor* animactor, double thegoal, int thevel); -int AnimSet(int animtype, sectortype* animindex, double thegoal, int thevel) +int AnimSet(int animtype, int animindex, DSWActor* animactor, double thegoal, double thevel); +int AnimSet(int animtype, sectortype* animindex, double thegoal, double thevel) { return AnimSet(animtype, sectnum(animindex), nullptr, thegoal, thevel); } diff --git a/source/games/sw/src/sector.cpp b/source/games/sw/src/sector.cpp index 38c2c0796..ca2b3b9bb 100644 --- a/source/games/sw/src/sector.cpp +++ b/source/games/sw/src/sector.cpp @@ -2776,7 +2776,7 @@ void AnimDelete(int animtype, int animindex, DSWActor* animactor) // //--------------------------------------------------------------------------- -int AnimSet(int animtype, int animindex, DSWActor* animactor, double thegoal, int thevel) +int AnimSet(int animtype, int animindex, DSWActor* animactor, double thegoal, double thevel) { int i, j;