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.84 by root, Tue Apr 3 00:21:38 2007 UTC vs.
Revision 1.88 by root, Tue Apr 24 00:42:03 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) 153 if (socket.current_map != ob->map || socket.force_newmap)
154 {
155 // force newmap is used for clients that do not redraw their map
156 // after image uploads.
157 socket.current_map = ob->map;
158 clear_map (pl);
159 }
160 else if (socket.current_map != ob->map)
161 { 154 {
162 clear_map (pl); 155 clear_map (pl);
163 socket.current_map = ob->map; 156 socket.current_map = ob->map;
164 157
165 if (socket.mapinfocmd) 158 if (socket.mapinfocmd)
618 { 611 {
619 case ST_PLAYING: 612 case ST_PLAYING:
620 LOG (llevError, "Got reply message with ST_PLAYING input state\n"); 613 LOG (llevError, "Got reply message with ST_PLAYING input state\n");
621 break; 614 break;
622 615
623 case ST_CHANGE_CLASS:
624 key_change_class (pl->ob, buf[0]);
625 break;
626
627 case ST_GET_PARTY_PASSWORD: /* Get password for party */ 616 case ST_GET_PARTY_PASSWORD: /* Get password for party */
628 receive_party_password (pl->ob, 13); 617 receive_party_password (pl->ob, 13);
629 break; 618 break;
630 619
631 default: 620 default:
1190 1179
1191 mapspace &ms = m->at (nx, ny); 1180 mapspace &ms = m->at (nx, ny);
1192 1181
1193 if (socket.extmap) 1182 if (socket.extmap)
1194 { 1183 {
1195 uint8 stat_hp = 0; 1184 uint8 stat_hp = 0;
1196 uint8 stat_width = 0; 1185 uint8 stat_width = 0;
1197 uint8 flags = 0; 1186 uint8 flags = 0;
1198 UUID player = 0; 1187 tag_t player = 0;
1199 1188
1200 // send hp information, if applicable 1189 // send hp information, if applicable
1201 if (object *op = ms.faces_obj [0]) 1190 if (object *op = ms.faces_obj [0])
1202 { 1191 {
1203 if (op->head || op->invisible) 1192 if (op->head || op->invisible)
1244 1233
1245 mask |= 0x8; 1234 mask |= 0x8;
1246 *last_ext |= 0x80; 1235 *last_ext |= 0x80;
1247 last_ext = &sl[sl.length ()]; 1236 last_ext = &sl[sl.length ()];
1248 1237
1249 sl << uint8 (0x47) << uint8 (8) << (uint64)player; 1238 sl << uint8 (0x47) << uint8 (4) << (uint32)player;
1250 } 1239 }
1251 1240
1252 if (lastcell.flags != flags) 1241 if (lastcell.flags != flags)
1253 { 1242 {
1254 lastcell.flags = flags; 1243 lastcell.flags = flags;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines