Changeset 26 for trunk


Ignore:
Timestamp:
Dec 20, 2005, 3:36:43 PM (14 years ago)
Author:
jtv
Message:

Hopefully tightened the central loop a bit more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ui_web.c

    r25 r26  
    233233    mines_moves(F), mines_togo(F));
    234234    printf("<form action=\"%s\" method=\"GET\"><table>", scriptname);
    235     urlhead = sprintf(url, "<a href=\"%s?game=%s&atr=", scriptname, id);
     235    urlhead = sprintf(url, "<td><a href=\"%s?game=%s&atr=", scriptname, id);
    236236    for (r=-1; r<=rows; ++r)
    237237    {
     
    242242      {
    243243    const char x = mines_at(F, r, c);
    244     printf("<td>");
    245     if (done || x != '^') printf("%c", x);
    246     else printf("%s%d\">=</a>",url,c);
    247     printf("</td>");
     244    if (done || x != '^') printf("<td>%c</td>",x);
     245    else printf("%s%d\">=</a></td>",url,c);
    248246      }
    249247      puts("</tr>");
Note: See TracChangeset for help on using the changeset viewer.