diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-16 19:22:06 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-16 19:22:06 +0000 |
| commit | 51aae47ae08ad61507f219c24ed6d9321c866f45 (patch) | |
| tree | ab111374d581adb66d718c39275d39a7fd4bc30a /src/arenaFile.c | |
| parent | 13d754c917ebcf1be913bd35f4c0e44468edeb52 (diff) | |
- upravy, hlavne siete
git-svn-id: http://opensvn.csie.org/tuxanci_ng@23 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/arenaFile.c')
| -rw-r--r-- | src/arenaFile.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/arenaFile.c b/src/arenaFile.c index f13750a..a58f3be 100644 --- a/src/arenaFile.c +++ b/src/arenaFile.c @@ -296,7 +296,13 @@ void initArenaFile() isArenaFileInit = TRUE; listArenaFile = newList(); +#ifndef BUBLIC_SERVER p = loadDirector(PATH_ARENA); +#endif + +#ifdef BUBLIC_SERVER + p = loadDirector(PUBLIC_SERVER_PATH_ARENA); +#endif for( i = 0 ; i < p->list->count ; i++ ) { @@ -307,8 +313,13 @@ void initArenaFile() if( strstr(line, ".map") != NULL && strstr(line, "~") == NULL ) { char path[STR_PATH_SIZE]; - sprintf(path, PATH_ARENA "%s", line); +#ifndef BUBLIC_SERVER + sprintf(path, PATH_ARENA "%s", line); +#endif +#ifdef BUBLIC_SERVER + sprintf(path, PUBLIC_SERVER_PATH_ARENA "%s", line); +#endif printf("load map %s\n", line); addList(listArenaFile, loadTextFile(path)); } |