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.55 by root, Wed Nov 14 10:12:45 2007 UTC vs.
Revision 1.60 by root, Sat Dec 27 01:25:00 2008 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001,2007 Mark Wedel 5 * Copyright (©) 2001,2007 Mark Wedel
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
134 134
135 if (fcntl (fd, F_SETFL, O_NONBLOCK) == -1) 135 if (fcntl (fd, F_SETFL, O_NONBLOCK) == -1)
136 LOG (llevError, "InitConnection: Error on fcntl.\n"); 136 LOG (llevError, "InitConnection: Error on fcntl.\n");
137 137
138 state = ST_SETUP; 138 state = ST_SETUP;
139 mapmode = Map0Cmd; 139 mapmode = Map1aCmd;
140 darkness = 1;
141 mapx = 11; 140 mapx = 11;
142 mapy = 11; 141 mapy = 11;
143 itemcmd = 1; /* Default is version item1 command */ 142 itemcmd = 1; /* Default is version item1 command */
144 max_rate = 100000 / (1000000 / MAX_TIME); // ~1mbit is assumed per default 143 max_rate = 100000 / (1000000 / MAX_TIME); // ~1mbit is assumed per default
145 144
149 */ 148 */
150 faces_sent[0] = true; 149 faces_sent[0] = true;
151 fx_want [FT_FACE] = true; // all clients must support image faces 150 fx_want [FT_FACE] = true; // all clients must support image faces
152 151
153 socket_ev.set (fd, EV_READ); 152 socket_ev.set (fd, EV_READ);
153 socket_ev.prio (2); // one higher than the ticker priority
154 socket_ev.start (); 154 socket_ev.start ();
155 155
156 // initialisation done, kick it! 156 // initialisation done, kick it!
157 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); 157 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO);
158 flush (); 158 flush ();
210 last_resist[i] = -1; 210 last_resist[i] = -1;
211 211
212 last_weapon_sp = -1; 212 last_weapon_sp = -1;
213 last_level = -1; 213 last_level = -1;
214 last_stats.exp = -1; 214 last_stats.exp = -1;
215 last_weight = (uint32) - 1;
216 last_flags = 0; 215 last_flags = 0;
217 last_weight = 0; 216 last_weight = -1;
218 last_weight_limit = 0; 217 last_weight_limit = 0;
219 last_path_attuned = 0; 218 last_path_attuned = 0;
220 last_path_repelled = 0; 219 last_path_repelled = 0;
221 last_path_denied = 0; 220 last_path_denied = 0;
222 last_speed = 0; 221 last_speed = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines