[Scummvm-git-logs] scummvm master -> 2eb81f3011c8a938b642144de6b35b1b87b2c182

digitall noreply at scummvm.org
Sat Jan 7 15:15:46 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2eb81f3011 HPL1: Remove Duplicate Branch Causing GCC Compiler Warning


Commit: 2eb81f3011c8a938b642144de6b35b1b87b2c182
    https://github.com/scummvm/scummvm/commit/2eb81f3011c8a938b642144de6b35b1b87b2c182
Author: D G Turner (digitall at scummvm.org)
Date: 2023-01-07T15:15:10Z

Commit Message:
HPL1: Remove Duplicate Branch Causing GCC Compiler Warning

Changed paths:
    engines/hpl1/engine/graphics/Beam.cpp


diff --git a/engines/hpl1/engine/graphics/Beam.cpp b/engines/hpl1/engine/graphics/Beam.cpp
index 607cf08d664..2c0a26b3e21 100644
--- a/engines/hpl1/engine/graphics/Beam.cpp
+++ b/engines/hpl1/engine/graphics/Beam.cpp
@@ -274,11 +274,7 @@ void cBeam::UpdateGraphics(cCamera3D *apCamera, float afFrameTime, cRenderList *
 		pTex += 3;
 	}
 
-	if (mpMaterial->IsTransperant()) {
-		mpVtxBuffer->UpdateData(eVertexFlag_Position | eVertexFlag_Texture0, false);
-	} else {
-		mpVtxBuffer->UpdateData(eVertexFlag_Position | eVertexFlag_Texture0, false);
-	}
+	mpVtxBuffer->UpdateData(eVertexFlag_Position | eVertexFlag_Texture0, false);
 }
 
 //-----------------------------------------------------------------------




More information about the Scummvm-git-logs mailing list