Revision 765
More sophisticated hack; bot 4 is default
Command.cpp | ||
---|---|---|
184 | 184 |
int cmd = atoi(tokens[3]); |
185 | 185 |
int bot = atoi(tokens[1]); |
186 | 186 |
if (cmd == 96) { |
187 |
|
|
188 | 187 |
wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, bot, 0); |
189 | 188 |
printf("Sent recharge request to %d\n", bot); |
189 |
return 0; |
|
190 | 190 |
} |
191 |
if (cmd == 97) { |
|
192 |
wl_send_robot_to_robot_global_packet(3, 10, NULL, 0, bot, 0); |
|
193 |
printf("Sent recharge stop request to %d\n", bot); |
|
194 |
return 0; |
|
195 |
} |
|
191 | 196 |
/* END OF HACK */ |
192 | 197 |
|
193 | 198 |
memset(arguments, 1, PACKET_DATA_LEN); |
Also available in: Unified diff