diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/base/modules.c | 4 | ||||
| -rw-r--r-- | src/base/path.h | 2 | ||||
| -rw-r--r-- | src/screen/screen_world.c | 2 | ||||
| -rw-r--r-- | src/server/heightScore.c | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/base/modules.c b/src/base/modules.c index f9f8c41..a7c6160 100755 --- a/src/base/modules.c +++ b/src/base/modules.c @@ -121,7 +121,7 @@ static module_t* newModule(char *name) return NULL; } ret->image = image; - FreeLibrary(image); + //FreeLibrary(image); //to tu nema bejt #endif ret->file = strdup(name); @@ -135,7 +135,7 @@ static module_t* newModule(char *name) ret->fce_cmd = getFce(ret, "cmdArena"); ret->fce_recvMsg = getFce(ret, "recvMsg"); - printf("load module.. (%s)\n", name); + printf("load module: (%s)\n", name); if( ret->fce_init(&export_fce) != 0 ) { diff --git a/src/base/path.h b/src/base/path.h index 75a2f55..294e634 100644 --- a/src/base/path.h +++ b/src/base/path.h @@ -26,7 +26,7 @@ #define PATH_MODULES PREFIX "/lib/tuxanci-ng-server/" #define SERVER_CONFIG "/etc/tuxanci-ng-server/server.conf" #else - #define PATH_MODULES PREFIX "/bin" + #define PATH_MODULES PREFIX "/bin/" #define SERVER_CONFIG PREFIX "/etc/tuxanci-ng-server/server.conf" #endif #endif diff --git a/src/screen/screen_world.c b/src/screen/screen_world.c index 030c690..b770bd5 100644 --- a/src/screen/screen_world.c +++ b/src/screen/screen_world.c @@ -144,7 +144,7 @@ void prepareArena() if( isSettingAI() ) { - if( loadModule("libmodAI.so") == 0 ) + if( loadModule("libmodAI") == 0 ) { tux->control = TUX_CONTROL_AI; } diff --git a/src/server/heightScore.c b/src/server/heightScore.c index fa7402e..a236439 100644 --- a/src/server/heightScore.c +++ b/src/server/heightScore.c @@ -67,6 +67,7 @@ int addPlayerInHighScore(char *name, int score) sprintf(new, "%s %d", name, score); insList(textFile->text, i, strdup(new) ); delListItem(textFile->text, HEIGHTSCORE_MAX_PLAYERS, free); + printTextFile(textFile); saveTextFile(textFile); return 0; |