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/director.cpp

    r492 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
     
    6566
    6667      word_start=buf;
    67       for (word_len=0,word_start=buf,word_size=0;*buf && *buf!=' ' && *buf!='\r' && *buf!='\n' &&
    68        *buf!='\t' && (*buf!='\\' || buf[1]!='n');buf++,word_size+=w,word_len++);
     68      for (word_len=0,word_start=buf,word_size=0; *buf && *buf!=' ' && *buf!='\r' && *buf!='\n' &&
     69       *buf!='\t' && (*buf!='\\' || buf[1]!='n'); buf++,word_size+=w,word_len++);
    6970
    7071      if (word_size<x2-x1) // make sure the word can fit on the screen
     
    161162            white_light+32*256,
    162163            wm->bright_color()
    163        
     164
    164165            ))
    165166        text=NULL;
     
    167168      {
    168169    if ((int)(cur_time.diff_time(text_time)*1000)>scroll_speed)
    169     {   
     170    {
    170171      text_y+=text_step;
    171172      delete text_time;
    172173      if (text)
    173         text_time=new time_marker;   
     174        text_time=new time_marker;
    174175      else
    175176        text_time=NULL;
    176177    }
    177       } else text_time=new time_marker;   
     178      } else text_time=new time_marker;
    178179    } else if (arg==text_symbol) done=1;
    179    
    180     wm->flush_screen();   
     180
     181    wm->flush_screen();
    181182    while (wm->event_waiting())
    182     {   
    183       event ev;   
     183    {
     184      event ev;
    184185      wm->get_event(ev);
    185186      if (ev.type==EV_KEY)
     
    204205        case JK_ESC : set_abort(1); done=1; break;
    205206        case JK_ENTER : done=1; break;
    206       }   
    207     }   
     207      }
     208    }
    208209      }
    209210    }
Note: See TracChangeset for help on using the changeset viewer.