Replaced Tabs with 4 spaces in every source file
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6561 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+17
-17
@@ -571,7 +571,7 @@ void gets2c() // get updates from the server
|
||||
break;
|
||||
|
||||
case ENET_EVENT_TYPE_RECEIVE:
|
||||
{
|
||||
{
|
||||
extern packetqueue pktlogger;
|
||||
pktlogger.queue(event.packet);
|
||||
|
||||
@@ -580,10 +580,10 @@ void gets2c() // get updates from the server
|
||||
// destroyed in logger
|
||||
//enet_packet_destroy(event.packet);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
case ENET_EVENT_TYPE_DISCONNECT:
|
||||
{
|
||||
{
|
||||
extern const char *disc_reason(int reason);
|
||||
if(event.data>=DISC_NUM) event.data = DISC_NONE;
|
||||
if(event.peer==connpeer)
|
||||
@@ -597,7 +597,7 @@ void gets2c() // get updates from the server
|
||||
disconnect();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -641,19 +641,19 @@ void genauthkey(const char *secret)
|
||||
|
||||
void saveauthkeys()
|
||||
{
|
||||
if(authkeys.length())
|
||||
{
|
||||
stream *f = openfile("config/auth.cfg", "w");
|
||||
if(!f) { conoutf("failed to open config/auth.cfg for writing"); return; }
|
||||
loopv(authkeys)
|
||||
{
|
||||
authkey *a = authkeys[i];
|
||||
f->printf("authkey \"%s\" \"%s\" \"%s\"\n", a->name, a->key, a->desc);
|
||||
}
|
||||
conoutf("saved authkeys to config/auth.cfg");
|
||||
delete f;
|
||||
}
|
||||
else conoutf("you need to use 'addauthkey USER KEY DESC' first; one DESC 'public', one DESC empty(=private)");
|
||||
if(authkeys.length())
|
||||
{
|
||||
stream *f = openfile("config/auth.cfg", "w");
|
||||
if(!f) { conoutf("failed to open config/auth.cfg for writing"); return; }
|
||||
loopv(authkeys)
|
||||
{
|
||||
authkey *a = authkeys[i];
|
||||
f->printf("authkey \"%s\" \"%s\" \"%s\"\n", a->name, a->key, a->desc);
|
||||
}
|
||||
conoutf("saved authkeys to config/auth.cfg");
|
||||
delete f;
|
||||
}
|
||||
else conoutf("you need to use 'addauthkey USER KEY DESC' first; one DESC 'public', one DESC empty(=private)");
|
||||
}
|
||||
|
||||
bool tryauth(const char *desc)
|
||||
|
||||
Reference in New Issue
Block a user