From 51aae47ae08ad61507f219c24ed6d9321c866f45 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 16 Mar 2008 19:22:06 +0000 Subject: - upravy, hlavne siete git-svn-id: http://opensvn.csie.org/tuxanci_ng@23 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/arenaFile.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/arenaFile.c') 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)); } -- cgit v1.2.3