- Timestamp:
- Mar 18, 2008, 10:40:37 PM (15 years ago)
- Location:
- abuse/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/light.cpp
r124 r125 190 190 { 191 191 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; 195 195 } 196 196 filter f(pal,&npal); … … 244 244 if( recalc ) 245 245 { 246 fprintf(stderr,"Palette has changed, recalculating light table...\n");246 dprintf("Palette has changed, recalculating light table...\n"); 247 247 stat_man->push("white light",NULL); 248 248 int color=0; -
abuse/trunk/src/lisp/lisp.cpp
r124 r125 922 922 #endif 923 923 924 for (x=0;i;x++,i=CDR(i)); 924 for(x = 0; i; i = CDR(i)) 925 x++; 925 926 return x; 926 927 } -
abuse/trunk/src/net/fileman.cpp
r124 r125 63 63 ok=nc->send_read(); 64 64 else if (nc->sock->ready_to_read()) 65 ok=process_nfs_command(nc); // if we couldn't process the packet ed, delete the connection65 ok=process_nfs_command(nc); // if we couldn't process the packet, delete the connection 66 66 67 67 if (ok) -
abuse/trunk/src/net/sock.hpp
r124 r125 7 7 class net_address 8 8 { 9 public:9 public: 10 10 enum protocol { IP, IPX, MODEM, NETBIOS, OTHER }; 11 11 virtual protocol protocol_type() const = 0; … … 18 18 virtual void store_string(char *st, int st_length) = 0; // this should be able to be used get_node_address() 19 19 virtual ~net_address() {;} 20 } 20 }; 21 21 22 22 23 23 class net_socket 24 24 { 25 public:26 enum socket_type { SOCKET_SECURE, SOCKET_FAST } 25 public: 26 enum socket_type { SOCKET_SECURE, SOCKET_FAST }; 27 27 28 28 virtual int error() = 0; … … 39 39 virtual int listen(int port) { return 0; } 40 40 virtual net_socket *accept(net_address *&from) { from=0; return 0; } 41 } 41 }; 42 42 43 43 class net_protocol 44 44 { 45 public 45 public: 46 46 enum debug_type 47 47 { DB_OFF, // no debug printing 48 48 DB_MAJOR_EVENT, // print major events 49 49 DB_IMPORTANT_EVENT, // anything that would tell where a lockup occurs 50 DB_MINOR_EVENT } ; // anything you can think off50 DB_MINOR_EVENT }; // anything you can think of 51 51 52 private 52 private: 53 53 debug_type debug_setting; 54 public 54 public: 55 55 56 56 enum connect_flags 57 57 { READ_WRITE, // flags for connect to server 58 WRITE_ONLY } 58 WRITE_ONLY }; 59 59 60 60 … … 92 92 net_protocol() { next=first; first=this; debug_setting=DB_OFF; } 93 93 virtual ~net_protocol() { cleanup(); } 94 } 94 }; 95 95 96 96 #endif
Note: See TracChangeset
for help on using the changeset viewer.