X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonFun.mod%2Fgame_uno.c;h=0fc95026f7a8a0f578e9fa32b30ad7027d1cc68e;hb=9fc84e5ecbdc204ee45bfc72bf891d7102756508;hp=4f17aebe40ac4188844bab73883f51ce72d8f13d;hpb=eb2aab55a1f97b329c0409d32d35d1f112facedb;p=NeonServV5.git diff --git a/src/modules/NeonFun.mod/game_uno.c b/src/modules/NeonFun.mod/game_uno.c index 4f17aeb..0fc9502 100644 --- a/src/modules/NeonFun.mod/game_uno.c +++ b/src/modules/NeonFun.mod/game_uno.c @@ -276,7 +276,7 @@ TIMEQ_CALLBACK(uno_game_wait_timeout) { struct uno_game *game = data; game->timer = NULL; if(game->players == 1) { - //TEXT: too less users + uno_reply(game, NULL, "NF_UNO_LESS_PLAYERS"); uno_free_game(game); return; } @@ -555,7 +555,7 @@ void uno_play_card(struct uno_game *game, struct uno_player *player, struct uno_ winner_count = 1; char rank_buf[20], won_buf[50], total_won_buf[50]; char *tmp, *tmp2; - for(cplayer = game->winner; cplayer->next; cplayer = cplayer->next) { + for(cplayer = game->winner; cplayer; cplayer = cplayer->next) { sprintf(rank_buf, "%d", winner_count++); content[0] = rank_buf; content[1] = cplayer->chanuser->user->nick;