Changeset 125


Ignore:
Timestamp:
Mar 18, 2008, 10:40:37 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Minor style changes.
Location:
abuse/trunk/src
Files:
4 edited

Legend:

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

    r124 r125  
    190190  {
    191191    npal.set(i,(int)rs,(int)gs,(int)bs);
    192     rs+=ra; if (rs>255) rs=255; if (rs<0) rs=0;
    193     gs+=ga; if (gs>255) gs=255; if (gs<0) gs=0;
    194     bs+=ba; if (bs>255) bs=255; if (bs<0) bs=0;
     192    rs+=ra; if (rs>255) rs=255; else if (rs<0) rs=0;
     193    gs+=ga; if (gs>255) gs=255; else if (gs<0) gs=0;
     194    bs+=ba; if (bs>255) bs=255; else if (bs<0) bs=0;
    195195  }
    196196  filter f(pal,&npal);
     
    244244    if( recalc )
    245245    {
    246         fprintf(stderr,"Palette has changed, recalculating light table...\n");
     246        dprintf("Palette has changed, recalculating light table...\n");
    247247        stat_man->push("white light",NULL);
    248248        int color=0;
  • abuse/trunk/src/lisp/lisp.cpp

    r124 r125  
    922922#endif
    923923
    924   for (x=0;i;x++,i=CDR(i));
     924  for(x = 0; i; i = CDR(i))
     925    x++;
    925926  return x;
    926927}
  • abuse/trunk/src/net/fileman.cpp

    r124 r125  
    6363      ok=nc->send_read();
    6464    else if (nc->sock->ready_to_read())
    65       ok=process_nfs_command(nc);    // if we couldn't process the packeted, delete the connection
     65      ok=process_nfs_command(nc);    // if we couldn't process the packet, delete the connection
    6666
    6767    if (ok)
  • abuse/trunk/src/net/sock.hpp

    r124 r125  
    77class net_address
    88{
    9   public :
     9public:
    1010  enum protocol { IP, IPX, MODEM, NETBIOS, OTHER };
    1111  virtual protocol protocol_type() const = 0;
     
    1818  virtual void store_string(char *st, int st_length) = 0;    // this should be able to be used get_node_address()
    1919  virtual ~net_address() {;}
    20 } ;
     20};
    2121
    2222
    2323class net_socket
    2424{
    25   public :
    26   enum socket_type { SOCKET_SECURE, SOCKET_FAST } ;
     25public:
     26  enum socket_type { SOCKET_SECURE, SOCKET_FAST };
    2727
    2828  virtual int error()                                              = 0;
     
    3939  virtual int listen(int port)       { return 0; }
    4040  virtual net_socket *accept(net_address *&from) { from=0; return 0; }
    41 } ;
     41};
    4242
    4343class net_protocol
    4444{
    45 public :
     45public:
    4646  enum debug_type
    4747    { DB_OFF,                // no debug printing
    4848      DB_MAJOR_EVENT,        // print major events
    4949      DB_IMPORTANT_EVENT,    // anything that would tell where a lockup occurs
    50       DB_MINOR_EVENT } ;     // anything you can think off
     50      DB_MINOR_EVENT };      // anything you can think of
    5151
    52 private :
     52private:
    5353  debug_type debug_setting;
    54 public :
     54public:
    5555
    5656  enum connect_flags
    5757  { READ_WRITE,          // flags for connect to server
    58          WRITE_ONLY } ;
     58         WRITE_ONLY };
    5959
    6060
     
    9292  net_protocol() { next=first; first=this; debug_setting=DB_OFF; }
    9393  virtual ~net_protocol() { cleanup(); }
    94 } ;
     94};
    9595
    9696#endif
Note: See TracChangeset for help on using the changeset viewer.