diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 37 |
1 files changed, 31 insertions, 6 deletions
@@ -1,12 +1,15 @@ #include <time.h> -#include "interface.h" #include "main.h" +#include "tux.h" + +#ifndef BUBLIC_SERVER + #include "font.h" #include "image.h" #include "layer.h" -#include "tux.h" +#include "interface.h" #include "screen.h" #include "screen_world.h" #include "screen_mainMenu.h" @@ -17,19 +20,25 @@ #include "screen_table.h" #include "screen_credits.h" #include "homeDirector.h" -#include "wall.h" -#include "shot.h" #include "panel.h" -#include "myTimer.h" -#include "arenaFile.h" #include "audio.h" #include "sound.h" #include "music.h" + +#endif + +#include "wall.h" +#include "shot.h" +#include "myTimer.h" +#include "arenaFile.h" #include "item.h" +#include "publicServer.h" static int my_argc; static char **my_argv; +#ifndef BUBLIC_SERVER + static void init() { createHomeDirector(); @@ -86,6 +95,8 @@ void quit() exit(0); } +#endif + char* getParam(char *s) { int i; @@ -145,12 +156,26 @@ int main(int argc, char *argv[]) my_argc = argc; my_argv = argv; +#ifndef BUBLIC_SERVER + init(); setScreen("mainMenu"); eventSDL(); quit(); +#endif + +#ifdef BUBLIC_SERVER + + initPublicServer(); + + while(1) + { + eventPublicServer(); + } + +#endif return 0; } |