else
break;
}
- for(ix = x, iy = y; ix >= 0 && iy >= 0; ix--, iy--) {
+ for(ix = x-1, iy = y-1; ix >= 0 && iy >= 0; ix--, iy--) {
if(game->matrix[ix][iy].field == field)
fc++;
else
else
break;
}
- for(ix = x, iy = y; ix >= 0 && iy < FOURWINS_MATRIX_HEIGHT; ix--, iy++) {
+ for(ix = x-1, iy = y+1; ix >= 0 && iy < FOURWINS_MATRIX_HEIGHT; ix--, iy++) {
if(game->matrix[ix][iy].field == field)
fc++;
else
if(prev)
prev->next = game->next;
else
- fourwins_active_games->next = game->next;
+ fourwins_active_games = game->next;
+ break;
} else
prev = cgame;
}
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;
{"NS_USERS_HEADER", "%s users from level %d to %d:"}, /* {ARGS: "#TestChan", 1, 500} */
{"NS_USERS_HEADER_MATCH", "%s users from level %d to %d matching %s:"}, /* {ARGS: "#TestChan", 1, 500, "Test*"} */
{"NS_USERS_HEADER_ACCESS", "Access"},
- {"NS_USERS_HEADER_ACCOUNT", "Accout"},
+ {"NS_USERS_HEADER_ACCOUNT", "Account"},
{"NS_USERS_HEADER_SEEN", "Last Seen"},
{"NS_USERS_HEADER_STATE", "Status"},
{"NS_USERS_COUNT", "There are $b%d$b users in %s."}, /* {ARGS: 20, "#TestChan"} */
{"NS_MYACCESS_HEADER_MATCH", "Showing all channel entries for account $b%s$b matching %s:"}, /* {ARGS: "TestAuth", "#Test*"} */
{"NS_MYACCESS_HEADER_NAME", "Name"},
{"NS_MYACCESS_HEADER_ACCESS", "Access"},
- {"NS_MYACCESS_HEADER_FLAGS", "Flags"},
+ {"NS_MYACCESS_HEADER_FLAGS", "Rights"},
{"NS_MYACCESS_HEADER_INFO", "Info"},
{"NS_MYACCESS_COUNT", "%s has access in $b%d$b channel(s) and is owner of $b%d$b channel(s)."}, /* {ARGS: "TestUser", 15, 5} */
{"NS_MYACCESS_COUNT_MATCH", "%s has access in $b%d$b channel(s) and is owner of $b%d$b channel(s) ($b%d$b channels matching your request)."}, /* {ARGS: "TestUser", 15, 5, 7} */