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:
aerkefiende
2011-07-31 15:44:57 +00:00
parent 48950ed6c5
commit 06f73f4627
41 changed files with 1375 additions and 1376 deletions
+17 -17
View File
@@ -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)