ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/init.C
(Generate patch)

Comparing deliantra/server/socket/init.C (file contents):
Revision 1.38 by root, Tue Mar 6 19:02:36 2007 UTC vs.
Revision 1.41 by root, Wed Mar 14 15:44:47 2007 UTC

129 mapmode = Map0Cmd; 129 mapmode = Map0Cmd;
130 darkness = 1; 130 darkness = 1;
131 mapx = 11; 131 mapx = 11;
132 mapy = 11; 132 mapy = 11;
133 itemcmd = 1; /* Default is version item1 command */ 133 itemcmd = 1; /* Default is version item1 command */
134 134 max_rate = 100000 / (1000000 / MAX_TIME); // ~1mbit is assumed per default
135 faces_sent = salloc0<uint8> (nrofpixmaps);
136 135
137 /* Do this so we don't send a face command for the client for 136 /* Do this so we don't send a face command for the client for
138 * this face. Face 0 is sent to the client to say clear 137 * this face. Face 0 is sent to the client to say clear
139 * face information. 138 * face information.
140 */ 139 */
141 faces_sent[0] = NS_FACESENT_FACE; 140 faces_sent[0] = true;
142 141
143 socket_ev.prio (PE_PRIO_NORMAL); 142 socket_ev.prio (PE_PRIO_NORMAL);
144 socket_ev.fd (fd); 143 socket_ev.fd (fd);
145 socket_ev.poll (PE_R); 144 socket_ev.poll (PE_R);
146 145
157 156
158client::~client () 157client::~client ()
159{ 158{
160 clients.erase (this); 159 clients.erase (this);
161 160
162 sfree<uint8> (faces_sent, nrofpixmaps);
163 free (stats.range); 161 free (stats.range);
164 free (stats.title); 162 free (stats.title);
165 free (host); 163 free (host);
166} 164}
167 165
226{ 224{
227 cst_tot.time_start = time (NULL); 225 cst_tot.time_start = time (NULL);
228 cst_lst.time_start = time (NULL); 226 cst_lst.time_start = time (NULL);
229 227
230 LOG (llevDebug, "Initialize new client/server data\n"); 228 LOG (llevDebug, "Initialize new client/server data\n");
231
232 read_client_images ();
233} 229}
234 230
235 231
236/******************************************************************************* 232/*******************************************************************************
237 * 233 *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines