Project

General

Profile

Revision 764

Added by Greg Tress over 12 years ago

Added hack for colonet recharging

View differences:

trunk/code/projects/colonet/server/Command.cpp
16 16
#include <string.h>
17 17

  
18 18
#include <colonet_wireless.h>
19
#include <wireless.h>
19 20

  
20 21
#include <Command.h>
21 22
#include <ConnectionPool.h>
......
180 181

  
181 182
  /* GREG'S FILTHY HACK */
182 183
  /*   PLEASE REMOVE    */
183

  
184
  printf("Index 3 token: %s\n", tokens[3]);
185

  
186

  
184
  int cmd = atoi(tokens[3]);
185
  int bot = atoi(tokens[1]);
186
  if (cmd == 96) {
187
  
188
    wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, bot, 0);
189
    printf("Sent recharge request to %d\n", bot);
190
  }
187 191
  /* END OF HACK */
188 192

  
189 193
  memset(arguments, 1, PACKET_DATA_LEN);

Also available in: Unified diff