Logo Search packages:      
Sourcecode: castle-combat version File versions

dedicated.c

#include "server.h"
#include "SDL.h"


int main(int argc, char *argv[])
{
    SDL_Event event;

    InitServer(0);      

    /* Loop, waiting for network events */
    for ( ; ; ) {
      SDL_PollEvent(&event);
        SDL_Delay(20);
        ServerLoop();
    }
    
    return 0;
}

Generated by  Doxygen 1.6.0   Back to index