From: Côme Chilliet Date: Tue, 29 Nov 2016 04:22:47 +0000 (+0700) Subject: Fixed some small sonar warnings X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=1f3a04488655b851cb12cf3d4d331577b896de3f;p=lugaru.git Fixed some small sonar warnings --- 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;