]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed some small sonar warnings
authorCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 04:22:47 +0000 (11:22 +0700)
committerCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 04:22:47 +0000 (11:22 +0700)
Source/Person.cpp
Source/Sprite.cpp
Source/Stereo.cpp

index 59f3e0654e1745213834594265c75dde24c48f9b..0100f8b0ba3210277dbc95bf6f1d80b76fefbc1a 100644 (file)
@@ -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);
index d96d09e0ef08eda17c3106c6d36cae813366c5ed..a0502d2e3377b9520e15c2277eb7f726395b5331 100644 (file)
@@ -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;
index 81839e2180197c84a85f8a6e74c1b8ffc979ac70..d288c6110c48289e96ee57b435dff78111c9c134 100644 (file)
@@ -31,8 +31,6 @@ bool CanInitStereo(StereoMode mode)
 
     switch (mode) {
     case stereoNone:
-        return true;
-        break;
     case stereoAnaglyph:
         return true;
         break;