]> git.jsancho.org Git - lugaru.git/commitdiff
Drop dead code
authorAlexander Monakov <amonakov@gmail.com>
Sun, 26 Dec 2010 23:52:43 +0000 (02:52 +0300)
committerAlexander Monakov <amonakov@gmail.com>
Sun, 26 Dec 2010 23:52:43 +0000 (02:52 +0300)
Source/Person.cpp

index 90fdabe8beb97bdf89f9c1f322c0ffe80ede4b41..6d793e1876146e0102da8586f0ab9162472e4e71 100644 (file)
@@ -2828,24 +2828,13 @@ void    Person::DoAnimations(){
                                                                                vel[0]=velocity.x;
                                                                                vel[1]=velocity.y;
                                                                                vel[2]=velocity.z;
-                                                                               if(1==1){
-                                                                                       if(tutoriallevel!=1){
-                                                                                               PlaySoundEx( heavyimpactsound, samp[heavyimpactsound], NULL, true);
-                                                                                               OPENAL_3D_SetAttributes(channels[heavyimpactsound], gLoc, vel);
-                                                                                               OPENAL_SetVolume(channels[heavyimpactsound], 128);
-                                                                                               OPENAL_SetPaused(channels[heavyimpactsound], false);
-                                                                                       }
-                                                                               }
-                                                                               else {
-                                                                                       if(tutoriallevel!=1){
-                                                                                               PlaySoundEx( landsound2, samp[landsound2], NULL, true);
-                                                                                               OPENAL_3D_SetAttributes(channels[landsound2], gLoc, vel);
-                                                                                               OPENAL_SetVolume(channels[landsound2], 256);
-                                                                                               OPENAL_SetPaused(channels[landsound2], false);
-                                                                                       }
+                                                                               if(tutoriallevel!=1){
+                                                                                 PlaySoundEx( heavyimpactsound, samp[heavyimpactsound], NULL, true);
+                                                                                 OPENAL_3D_SetAttributes(channels[heavyimpactsound], gLoc, vel);
+                                                                                 OPENAL_SetVolume(channels[heavyimpactsound], 128);
+                                                                                 OPENAL_SetPaused(channels[heavyimpactsound], false);
                                                                                }
 
-                                                                               //if(!victim->isIdle()||victim->damage>victim->damagetolerance-60)
                                                                                victim->RagDoll(0);
                                                                                XYZ relative;
                                                                                relative=victim->coords-coords;