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

style: remove trailing spaces, fix copyright statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/loadgame.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
     
    4142  char name[100];
    4243  int i;
    43   for (i=0;i<MAX_SAVE_GAMES*3;i++)
     44  for (i=0; i<MAX_SAVE_GAMES*3; i++)
    4445  {
    4546    sprintf(name,"nums%04d.pcx",i+1);
     
    6162  int ih=cache.img(save_buts[0])->height();
    6263  int x=0;
    63   for (i=0;i<total_saved;i++,y+=ih)
     64  for (i=0; i<total_saved; i++,y+=ih)
    6465  {
    6566    if (thumb_nails) { while (!thumb_nails[x]) x++; }
     
    7071  }
    7172
    72   for (i=0;i<total_saved-1;i++)
     73  for (i=0; i<total_saved-1; i++)
    7374    buts[i]->next=buts[i+1];
    7475
     
    7980{
    8081  int i=MAX_SAVE_GAMES,last_free=0;
    81   for (;i>0;)
     82  for (; i>0; )
    8283  {
    8384    char name[20];
     
    160161    image *first=NULL;
    161162
    162     for (start_num=0;start_num<MAX_SAVE_GAMES;start_num++)
     163    for (start_num=0; start_num<MAX_SAVE_GAMES; start_num++)
    163164    {
    164165        char name[255];
     
    188189        if (fail && show_all)
    189190        {
    190             thumb_nails[start_num]=new image(160,100);   
     191            thumb_nails[start_num]=new image(160,100);
    191192            thumb_nails[start_num]->clear();
    192193            console_font->put_string(thumb_nails[start_num],0,0,symbol_str("no_saved"));
     
    207208
    208209
    209   for (i=0;i<total_saved;i++,y+=ih)
    210   {
    211     buts[i]=new ico_button(0,y,ID_LOAD_GAME_NUMBER+i,       
     210  for (i=0; i<total_saved; i++,y+=ih)
     211  {
     212    buts[i]=new ico_button(0,y,ID_LOAD_GAME_NUMBER+i,
    212213               save_buts[i*3+1],save_buts[i*3+1],save_buts[i*3+0],save_buts[i*3+2],NULL);
    213214    buts[i]->set_act_id(ID_LOAD_GAME_PREVIEW+i);
    214215  }
    215216
    216   for (i=0;i<total_saved-1;i++)
     217  for (i=0; i<total_saved-1; i++)
    217218    buts[i]->next=buts[i+1];
    218219*/
     
    248249    wm->close_window(preview);
    249250
    250     for (i=0;i<total_saved;i++)
     251    for (i=0; i<total_saved; i++)
    251252        if (thumb_nails[i])
    252253            delete thumb_nails[i];
Note: See TracChangeset for help on using the changeset viewer.