]> git.jsancho.org Git - lugaru.git/commitdiff
Removed unused netmessages code.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 06:03:22 +0000 (02:03 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 14 May 2010 06:03:22 +0000 (02:03 -0400)
Source/GameInitDispose.cpp
Source/GameTick.cpp
Source/Globals.cpp

index 509976f99c6daa8b3099de8f42a087f032a3b85b..e712154a69fd5f97ba7e492e833ff2c73891a773 100644 (file)
@@ -58,7 +58,6 @@ extern int numplayers;
 extern int environment;
 extern bool ambientsound;
 extern float multiplier;
-extern int newnetmessages;
 extern int netdatanew;
 extern float mapinfo;
 extern bool stillloading;
@@ -1359,8 +1358,6 @@ void Game::LoadStuff()
 
        //texture.data = ( GLubyte* )malloc( 1024*1024*4 );
 
-       newnetmessages=0;
-
        for(i=0;i<maxplayers;i++)
        {
                if (glIsTexture(player[i].skeleton.drawmodel.textureptr))
index 2f59318d62f71a362506c5d231797bacbaf333dc..670bdcfecd3097cf5d42e359b91eb3d4d831a321 100644 (file)
@@ -76,8 +76,6 @@ extern bool mousejump;
 extern float viewdistance;
 extern bool freeze;
 extern bool autoslomo;
-extern int newnetmessages;
-extern char netmessages[256];
 extern bool keyboardfrozen;
 extern int netdatanew;
 extern bool loadingstuff;
@@ -1691,36 +1689,6 @@ void     Game::Tick()
 
        float headprop,bodyprop,armprop,legprop;
 
-       if(newnetmessages){
-               newnetmessages=0;
-               PlaySoundEx( consolesuccesssound, samp[consolesuccesssound], NULL, true);
-               OPENAL_SetVolume(channels[consolesuccesssound], 256);
-               OPENAL_SetPaused(channels[consolesuccesssound], false);
-
-               for(k=14;k>=2;k--){
-                       for(j=0;j<255;j++){
-                               consoletext[k][j]=consoletext[k-1][j];
-                       }
-                       consolechars[k]=consolechars[k-1];
-               }
-               for(k=14;k>=2;k--){
-                       for(j=0;j<255;j++){
-                               displaytext[k][j]=displaytext[k-1][j];
-                       }
-                       displaychars[k]=displaychars[k-1];
-                       displaytime[k]=displaytime[k-1];
-               }
-               for(j=0;j<255;j++){
-                       consoletext[1][j]=' ';
-                       displaytext[1][j]=' ';
-               }
-               sprintf (consoletext[1], netmessages);
-               sprintf (displaytext[1], netmessages);
-               consolechars[1]=255;
-               displaychars[1]=255;
-               displaytime[1]=0;
-       }
-
        for(i=0;i<15;i++){
                displaytime[i]+=multiplier;
        }
index 8d9682dc3ef75725e396366f8a9408a5d729f36f..2eae6fbc7979c31da454398c1257935c144ce1c7 100644 (file)
@@ -115,8 +115,6 @@ int flashdelay = 0;
 bool vblsync = 0;
 float motionbluramount = 0;
 bool keyboardfrozen = 0;
-int newnetmessages = 0;
-char netmessages[256] = {0};
 char mapname[256] = {0};
 bool loadingstuff = 0;
 bool stillloading = 0;