From 1f3a04488655b851cb12cf3d4d331577b896de3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 29 Nov 2016 11:22:47 +0700 Subject: [PATCH] Fixed some small sonar warnings --- Source/Person.cpp | 1 - Source/Sprite.cpp | 9 +-------- Source/Stereo.cpp | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Source/Person.cpp b/Source/Person.cpp index 59f3e06..0100f8b 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -3317,7 +3317,6 @@ void Person::DoAnimations() weapons[weaponids[weaponactive]].blooddrip += 3; } if (weaponactive == -1 && creature == wolftype) { - ; emit_sound_at(clawslicesound, victim->coords, 128.); victim->spurt = 1; victim->DoBloodBig(2 / victim->armorhigh, 175); diff --git a/Source/Sprite.cpp b/Source/Sprite.cpp index d96d09e..a0502d2 100644 --- a/Source/Sprite.cpp +++ b/Source/Sprite.cpp @@ -107,15 +107,8 @@ void Sprite::Draw() glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } break; - case cloudimpactsprite: - cloudimpacttexture.bind(); - if (!blend) { - blend = 1; - glAlphaFunc(GL_GREATER, 0.0001); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - } - break; case breathsprite: + case cloudimpactsprite: cloudimpacttexture.bind(); if (!blend) { blend = 1; diff --git a/Source/Stereo.cpp b/Source/Stereo.cpp index 81839e2..d288c61 100644 --- a/Source/Stereo.cpp +++ b/Source/Stereo.cpp @@ -31,8 +31,6 @@ bool CanInitStereo(StereoMode mode) switch (mode) { case stereoNone: - return true; - break; case stereoAnaglyph: return true; break; -- 2.39.5