Changeset 166 for ttyvaders


Ignore:
Timestamp:
Nov 13, 2003, 4:41:12 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Minor coding style changes.
Location:
ttyvaders/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/libee/conic.c

    r160 r166  
    5757    int d1 = b*b - (a*a*b) + (a*a/4);
    5858
    59     while( a*a*y - a*a/2 > b*b*(x+1))
     59    while(a*a*y - a*a/2 > b*b*(x+1))
    6060    {
    6161        if(d1 < 0)
     
    104104    ellipsepoints(xo, yo, x, y, c);
    105105
    106     while( a*a*y - a*a/2 > b*b*(x+1))
     106    while(a*a*y - a*a/2 > b*b*(x+1))
    107107    {
    108108        if(d1 < 0)
     
    147147    ellipsepoints(xo, yo, x, y, '-');
    148148
    149     while( a*a*y - a*a/2 > b*b*(x+1))
     149    while(a*a*y - a*a/2 > b*b*(x+1))
    150150    {
    151151        if(d1 < 0)
  • ttyvaders/trunk/libee/line.c

    r160 r166  
    162162        s->x1 = 0;
    163163    }
    164     else if( bits1 & (1<<1) )
     164    else if(bits1 & (1<<1))
    165165    {
    166166        int xmax = ee_get_width() - 1;
     
    168168        s->x1 = xmax;
    169169    }
    170     else if( bits1 & (1<<2) )
     170    else if(bits1 & (1<<2))
    171171    {
    172172        s->x1 = s->x2 - (s->y2 - 0) * (s->x2 - s->x1) / (s->y2 - s->y1);
    173173        s->y1 = 0;
    174174    }
    175     else if( bits1 & (1<<3) )
     175    else if(bits1 & (1<<3))
    176176    {
    177177        int ymax = ee_get_height() - 1;
  • ttyvaders/trunk/src/box.c

    r154 r166  
    2929box * create_box(game *g, int x, int y, int w, int h)
    3030{
    31     box *b = malloc(sizeof( box ));
     31    box *b = malloc(sizeof(box));
    3232
    3333    b->x = x;
Note: See TracChangeset for help on using the changeset viewer.