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

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.79 by root, Thu Mar 15 16:25:45 2007 UTC vs.
Revision 1.82 by root, Sun Mar 18 03:05:41 2007 UTC

148{ 148{
149 client &socket = *pl->ns; 149 client &socket = *pl->ns;
150 object *ob = pl->ob; 150 object *ob = pl->ob;
151 char buf[MAX_BUF]; /* eauugggh */ 151 char buf[MAX_BUF]; /* eauugggh */
152 152
153 if (socket.force_newmap && 0) 153 if (socket.force_newmap)
154 { 154 {
155 // force newmap is used for clients that do not redraw their map 155 // force newmap is used for clients that do not redraw their map
156 // after image uploads. 156 // after image uploads.
157 socket.current_map = ob->map; 157 socket.current_map = ob->map;
158 clear_map (pl); 158 clear_map (pl);
159 } 159 }
160 else if (socket.current_map != ob->map) 160 else if (socket.current_map != ob->map)
161 { 161 {
162 clear_map (pl); 162 clear_map (pl);
163 socket.current_map = ob->map;
163 164
164 if (socket.mapinfocmd) 165 if (socket.mapinfocmd)
165 { 166 {
166 if (ob->map && ob->map->path[0]) 167 if (ob->map && ob->map->path[0])
167 { 168 {
977/** 978/**
978 * Asks the client to query the user. This way, the client knows 979 * Asks the client to query the user. This way, the client knows
979 * it needs to send something back (vs just printing out a message) 980 * it needs to send something back (vs just printing out a message)
980 */ 981 */
981void 982void
982send_query (client *ns, uint8 flags, char *text) 983send_query (client *ns, uint8 flags, const char *text)
983{ 984{
984 ns->send_packet_printf ("query %d %s", flags, text ? text : ""); 985 ns->send_packet_printf ("query %d %s", flags, text ? text : "");
985} 986}
986 987
987#define AddIfInt64(Old,New,Type) if (Old != New) {\ 988#define AddIfInt64(Old,New,Type) if (Old != New) {\

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines