… | |
… | |
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 | |
90 | static void |
90 | static void |
91 | socket_map_scroll (client * ns, int dx, int dy) |
91 | socket_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 | ns->send_packet_printf ("map_scroll %d %d", dx, dy); |
96 | ns->send_packet_printf ("map_scroll %d %d", dx, dy); |
… | |
… | |
570 | * 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. |
571 | */ |
571 | */ |
572 | void |
572 | void |
573 | AddMeCmd (char *buf, int len, client * ns) |
573 | AddMeCmd (char *buf, int len, client * ns) |
574 | { |
574 | { |
575 | Settings oldsettings; |
|
|
576 | |
|
|
577 | oldsettings = settings; |
|
|
578 | if (ns->status != Ns_Add || add_player (ns)) |
575 | if (ns->status != Ns_Add || add_player (ns)) |
579 | ns->send_packet ("addme_failed"); |
576 | ns->send_packet ("addme_failed"); |
580 | else |
577 | else |
581 | ns->send_packet ("addme_success"); |
578 | ns->send_packet ("addme_success"); |
582 | |
|
|
583 | settings = oldsettings; |
|
|
584 | } |
579 | } |
585 | |
580 | |
586 | /** Reply to ExtendedInfos command */ |
581 | /** Reply to ExtendedInfos command */ |
587 | void |
582 | void |
588 | ToggleExtendedInfos (char *buf, int len, client * ns) |
583 | ToggleExtendedInfos (char *buf, int len, client * ns) |