X-Git-Url: http://git.shiar.nl/netris.git/blobdiff_plain/7b1d1bee46133a746a88306413c028b0e75a3688..406e72f6bc3be827e1202d817677e8af093231dc:/client.c diff --git a/client.c b/client.c index 6ed8087..0137572 100644 --- a/client.c +++ b/client.c @@ -77,7 +77,7 @@ static bool paused = 0; static char lastadd; -void handle_setkeys(char *newKeys) +static void handle_setkeys(char *newKeys) { int i, k, ch; char used[256]; @@ -113,7 +113,7 @@ void handle_setkeys(char *newKeys) exit(1); } -void Usage(void) +static void Usage(void) { Header(); fprintf(stderr, @@ -138,7 +138,7 @@ void Usage(void) ); } -void handle_arg(char tag, char *value) +static void handle_arg(char tag, char *value) { switch (tag) { case 'a': //ascii @@ -189,7 +189,7 @@ void handle_arg(char tag, char *value) } } -void handle_conffile(char *filename) +static void handle_conffile(char *filename) { FILE *file_in; char buf[513]; @@ -222,7 +222,7 @@ void handle_conffile(char *filename) } //defaults } -int game_piece(int scr, char shape) +static int game_piece(int scr, char shape) { Players[scr].score.pieces++; { @@ -242,7 +242,7 @@ int game_piece(int scr, char shape) return 1; } -void game_setpaused(void) +static void game_setpaused(void) { //check whether anyone paused the game int i; @@ -251,7 +251,7 @@ void game_setpaused(void) paused |= (Players[i].flags & SCF_paused) != 0; } -void game_reset(void) +static void game_reset(void) { //init new game int i; @@ -274,7 +274,7 @@ void game_reset(void) InitFields(); } -void game_clear(int scr) +static void game_clear(int scr) { //check for full lines int linesCleared; int linevalues[] = { 40, 100, 400, 1200, }; //= 50*lines! - 10*(lines==1) @@ -318,7 +318,7 @@ void game_clear(int scr) } //lines cleared } -void game_loop(void) +static void game_loop(void) { bool changed = 0; short gameStatus = 2; //2=loop; 1=new piece; 0=quit