… | |
… | |
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 | { |
|
|
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 |