From 1a310981826b800b1a4a405eaef0612cf7b1cb70 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sun, 2 Jan 2022 12:11:54 +0100 Subject: Fix compilation with Clang 13.0.0 Clang 13 changes: * `-Wreserved-identifier` and `-Wunused-but-set-variable` got added * the `-Wreturn-std-move-in-c++11` option was removed Builds still fail when native optimizations are enabled --- src/Entities/Pawn.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp index e227dca6f..760c9c0e6 100644 --- a/src/Entities/Pawn.cpp +++ b/src/Entities/Pawn.cpp @@ -324,7 +324,6 @@ void cPawn::HandleFalling(void) /* We initialize these with what the foot is really IN, because for sampling we will move down with the epsilon above */ bool IsFootInWater = IsBlockWater(BlockAtFoot); - bool IsFootInLiquid = IsFootInWater || IsBlockLava(BlockAtFoot) || (BlockAtFoot == E_BLOCK_COBWEB); // okay so cobweb is not _technically_ a liquid... bool IsFootOnSlimeBlock = false; /* The "cross" we sample around to account for the player width/girth */ @@ -377,7 +376,6 @@ void cPawn::HandleFalling(void) if (j == 0) { IsFootInWater |= IsBlockWater(BlockType); - IsFootInLiquid |= IsFootInWater || IsBlockLava(BlockType) || (BlockType == E_BLOCK_COBWEB); // okay so cobweb is not _technically_ a liquid... IsFootOnSlimeBlock |= (BlockType == E_BLOCK_SLIME_BLOCK); } -- cgit v1.2.3