From 078024057ace6016005575d3105017914e8b56b0 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 23 Nov 2022 18:28:28 +1100 Subject: [PATCH] - SW: Clean up a useless test function. --- source/games/sw/src/player.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index b73f7b0a75c..5f7e4514a25 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -3826,10 +3826,7 @@ bool PlayerOnLadder(PLAYER* pp) bool DoPlayerTestCrawl(PLAYER* pp) { - if (abs(pp->loz - pp->hiz) < PLAYER_STANDING_ROOM) - return true; - - return false; + return abs(pp->loz - pp->hiz) < PLAYER_STANDING_ROOM; } //---------------------------------------------------------------------------