*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1059 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-06-01 15:48:55 +00:00
parent e166318c5e
commit 20252c19fd
15 changed files with 90 additions and 50 deletions
+17 -1
View File
@@ -284,10 +284,26 @@ int main(int argc, char **argv)
exec("config/menus.cfg");
exec("config/prefabs.cfg");
exec("config/sounds.cfg");
exec("config/securemaps.cfg");
execfile("config/servers.cfg");
persistidents = true;
gzFile f = gzopen("config/maps.dat", "rb9");
if(f)
{
int n;
gzread(f, &n, sizeof(int));
endianswap(&n, sizeof(int), 1);
loopi(n)
{
string s;
gzread(f, s, sizeof(string));
enet_uint32 c;
gzread(f, &c, sizeof(enet_uint32));
mapinfo[newstring(s)] = c;
}
gzclose(f);
}
if(!execfile("config/saved.cfg")) exec("config/defaults.cfg");
execfile("config/autoexec.cfg");