Ignore:
Timestamp:
Apr 17, 2011, 11:56:44 PM (12 years ago)
Author:
Sam Hocevar
Message:

style: remove trailing spaces, fix copyright statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/automap.cpp

    r481 r494  
    22 *  Abuse - dark 2D side-scrolling platform game
    33 *  Copyright (c) 1995 Crack dot Com
     4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
    45 *
    56 *  This software was released into the Public Domain. As with most public
     
    103104
    104105  screen->set_clip(window_xstart,window_ystart,window_xend,window_yend);
    105 /*  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy;y<=ey;j+=AUTOTILE_HEIGHT,y++)
     106/*  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy; y<=ey; j+=AUTOTILE_HEIGHT,y++)
    106107    foretiles[cur_lev->get_fg(x,y)]->micro_image->put_image(screen,i,j,0);
    107108
    108   for (i=draw_xstart+ex*AUTOTILE_WIDTH,j=draw_ystart,y=sy,x=ex;y<=ey;j+=AUTOTILE_HEIGHT,y++)
     109  for (i=draw_xstart+ex*AUTOTILE_WIDTH,j=draw_ystart,y=sy,x=ex; y<=ey; j+=AUTOTILE_HEIGHT,y++)
    109110    foretiles[cur_lev->get_fg(x,y)]->micro_image->put_image(screen,i,j,0);
    110111
    111   for (i=draw_xstart,j=draw_ystart,x=sx,y=sy;x<=ex;i+=AUTOTILE_WIDTH,x++)
     112  for (i=draw_xstart,j=draw_ystart,x=sx,y=sy; x<=ex; i+=AUTOTILE_WIDTH,x++)
    112113    foretiles[cur_lev->get_fg(x,y)]->micro_image->put_image(screen,i,j,0);
    113114
    114   for (i=draw_xstart,j=draw_ystart+ey*AUTOTILE_HEIGHT,x=sx,y=ex;x<=ex;i+=AUTOTILE_WIDTH,x++)
     115  for (i=draw_xstart,j=draw_ystart+ey*AUTOTILE_HEIGHT,x=sx,y=ex; x<=ex; i+=AUTOTILE_WIDTH,x++)
    115116    foretiles[cur_lev->get_fg(x,y)]->micro_image->put_image(screen,i,j,0); */
    116117
     
    118119
    119120  unsigned short *fgline;
    120   for (j=draw_ystart,y=sy;y<=ey;j+=AUTOTILE_HEIGHT,y++)
     121  for (j=draw_ystart,y=sy; y<=ey; j+=AUTOTILE_HEIGHT,y++)
    121122  {
    122123    fgline=cur_lev->get_fgline(y)+sx;
    123     for (i=draw_xstart,x=sx;x<=ex;i+=AUTOTILE_WIDTH,x++,fgline++)
     124    for (i=draw_xstart,x=sx; x<=ex; i+=AUTOTILE_WIDTH,x++,fgline++)
    124125    {
    125126      if ((*fgline)&0x8000)
     
    199200        switch(ev.key)
    200201    {
    201       case 'A' :   
     202      case 'A' :
    202203      case 'a' :
    203204          toggle_window();
    204         break;   
    205     }
    206     break;   
     205        break;
     206    }
     207    break;
    207208      case EV_CLOSE_WINDOW :
    208209        wm->close_window(automap_window);
    209210    automap_window=NULL;
    210     break;   
    211     }
    212   }
    213 }
    214 
    215 
    216 
    217 
    218 
    219 
    220 
     211    break;
     212    }
     213  }
     214}
     215
     216
     217
     218
     219
     220
     221
Note: See TracChangeset for help on using the changeset viewer.