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/server2.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
     
    4950  sync_check=0;                  // should we send sync packets to client?
    5051
    51   for (int i=1;i<argc;i++)
     52  for (int i=1; i<argc; i++)
    5253  {
    5354    if (!strcmp(argv[i],"-sync"))
     
    6465game_server::~game_server()
    6566{
    66   for (client_descriptor *p=client_list;p;)
     67  for (client_descriptor *p=client_list; p; )
    6768  {
    6869    client_descriptor *q=p;
     
    7879/*  client_descriptor *last=NULL;
    7980  packet pk;
    80   for (client_descriptor *p=client_list;p;)
     81  for (client_descriptor *p=client_list; p; )
    8182  {
    8283    int delete_me=0;
     
    128129        last->next=p;
    129130      else client_list=p;
    130       delete del_me;   
     131      delete del_me;
    131132    } else { last=p; p=p->next; }
    132133
     
    147148  next_out.write_uint8(SCMD_END_OF_PACKET);        // so clients knows when to stop reading
    148149
    149   for (client_descriptor *p=client_list;p;)
     150  for (client_descriptor *p=client_list; p; )
    150151  {
    151152    if (p->connection && p->player)
     
    159160      last->next=p;
    160161    else client_list=p;
    161     delete del_me;   
     162    delete del_me;
    162163      } else { last=p; p=p->next; }
    163164    } else
     
    180181/*  int wait=0;
    181182  client_descriptor *p=client_list;
    182   for (;p;p=p->next)
     183  for (; p; p=p->next)
    183184    if (p->requested_join)
    184185    {
    185186
    186187      view *f=player_list;
    187       for (;f && f->next;f=f->next);      // find last player, add one for pn
     188      for (; f && f->next; f=f->next);      // find last player, add one for pn
    188189      int i,st=0;
    189       for (i=0;i<total_objects;i++)
     190      for (i=0; i<total_objects; i++)
    190191        if (!strcmp(object_names[i],"START"))
    191192      st=i;
     
    225226
    226227    client_descriptor *last=NULL;
    227     for (p=client_list;p;p=p->next)
     228    for (p=client_list; p; p=p->next)
    228229    {
    229230      if (p->player)
Note: See TracChangeset for help on using the changeset viewer.