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.41 by root, Fri Dec 15 19:59:20 2006 UTC vs.
Revision 1.43 by root, Sat Dec 16 20:16:37 2006 UTC

86 -1, /* life stealing */ 86 -1, /* life stealing */
87 -1 /* Disease - not fully done yet */ 87 -1 /* Disease - not fully done yet */
88}; 88};
89 89
90static void 90static void
91socket_map_scroll (client * ns, int dx, int dy) 91socket_map_scroll (client *ns, int dx, int dy)
92{ 92{
93 struct Map newmap; 93 struct Map newmap;
94 int x, y, mx, my; 94 int x, y, mx, my;
95 95
96 {
97 packet sl;
98
99 sl.printf ("map_scroll %d %d", dx, dy); 96 ns->send_packet_printf ("map_scroll %d %d", dx, dy);
100 ns->send_packet (sl);
101 }
102 97
103 /* If we are using the Map1aCmd, we may in fact send 98 /* If we are using the Map1aCmd, we may in fact send
104 * head information that is outside the viewable map. 99 * head information that is outside the viewable map.
105 * So set the mx,my to the max value we want to 100 * So set the mx,my to the max value we want to
106 * look for. Removed code to do so - it caused extra 101 * look for. Removed code to do so - it caused extra
575 * it either has to be here or init_sockets needs to be exported. 570 * it either has to be here or init_sockets needs to be exported.
576 */ 571 */
577void 572void
578AddMeCmd (char *buf, int len, client * ns) 573AddMeCmd (char *buf, int len, client * ns)
579{ 574{
580 Settings oldsettings;
581
582 oldsettings = settings;
583 if (ns->status != Ns_Add || add_player (ns)) 575 if (ns->status != Ns_Add || add_player (ns))
584 ns->send_packet ("addme_failed"); 576 ns->send_packet ("addme_failed");
585 else 577 else
586 ns->send_packet ("addme_success"); 578 ns->send_packet ("addme_success");
587
588 settings = oldsettings;
589} 579}
590 580
591/** Reply to ExtendedInfos command */ 581/** Reply to ExtendedInfos command */
592void 582void
593ToggleExtendedInfos (char *buf, int len, client * ns) 583ToggleExtendedInfos (char *buf, int len, client * ns)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines