diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 11:15:56 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-24 11:15:56 +0100 |
| commit | 6820c635353b25f12401f8610c140c8608051ded (patch) | |
| tree | ee3e2c284a7bae7e91d58422602259df827a1504 /src/game.c | |
| parent | 322ff55a41374e39731aa53dcf6028b09c7c39c9 (diff) | |
Source code refactoring. Moved net/client/server stuff to 'net' subfolder.
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -11,7 +11,9 @@ #include <sys/types.h> #include "ui.h" #include "global.h" -#include "net.h" +#include "net/comm.h" +#include "net/client.h" +#include "net/server.h" static void init_mainstack(card *stack, const uint32_t size) { @@ -35,7 +37,7 @@ static void init_mainstack(card *stack, const uint32_t size) static void main_loop_client(int sock) { bool running = true; - gamestate state = STATE_CLIENT_WAIT_CARDS; + //gamestate state = STATE_CLIENT_WAIT_CARDS; while(running) { @@ -117,7 +119,7 @@ static void main_loop_client(int sock) static void main_loop_server(socket_list_t* sock) { bool running = true; - gamestate state = STATE_SERVER_DEAL_CARDS; + //gamestate state = STATE_SERVER_DEAL_CARDS; while(running) { |
