extern int environment;
extern bool ambientsound;
extern float multiplier;
-extern int newnetmessages;
extern int netdatanew;
extern float mapinfo;
extern bool stillloading;
numchallengelevels=14;
- registered=0;
-
/*char tempstring[256];
sprintf (tempstring, "%s", registrationname);
long num1;
*/
FILE *tfile;
- tfile=fopen( ":Data:Sounds:flame.ogg", "rb" );
- if(tfile)
- {
- long num1;
- long num2;
- long long longnum;
- long long longnuma;
- long num1a;
- long num2a;
-
- int numchars;
- funpackf(tfile, "Bb", ®istered);
- if(registered)
- {
- funpackf(tfile, "Bi", &numchars);
- if(numchars>0)
- {
- for(j=0;j<numchars;j++)
- {
- funpackf(tfile, "Bb", ®istrationname[j]);
- }
- registrationname[numchars]='\0';
- funpackf(tfile, "Bi", &num1);
- funpackf(tfile, "Bi", &num2);
- longnum=num2+num1*100000000;
-
- char tempstring[256];
- #if defined(__APPLE__)
- sprintf (tempstring, "%s", registrationname);
- #elif defined(_WIN32) || defined(__linux__)
- sprintf (tempstring, "%s-windows", registrationname);
- #else
- #error Please make sure you have the right registration key stuff here!
- #endif
- longnuma = MD5_string ( tempstring);
- num1a = longnuma/100000000;
- num2a = longnuma%100000000;
- //if(num1a==num1&&num2a==num2)registered=1;
- if(numchars>2)registered=1;
- else registered=0;
- }
- }
- fclose(tfile);
- }
- else registered=0;
accountactive=-1;
//texture.data = ( GLubyte* )malloc( 1024*1024*4 );
- newnetmessages=0;
-
for(i=0;i<maxplayers;i++)
{
if (glIsTexture(player[i].skeleton.drawmodel.textureptr))
loaddistrib = 0;
keyselect = 0;
indemo = 0;
- registered = 0;
won = 0;