54 :
FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
55 net_lobby(0), unit_index(-1)
175 enable = sel_unit >= 0 &&
189 enable = sel_unit >= 0 && sel_play >= 0 &&
194 if (!u || u->
Name() != player_name)
228 enable = sel_play >= 0 && sel_unit < 0;
232 if (u && u->
Name() == player_name)
287 static bool assignment_change =
false;
288 static int num_users = 0;
298 if (users.
size() != num_users) {
299 assignment_change =
true;
300 num_users = users.
size();
304 assignment_change =
true;
308 for (
int i = 0; i < units.
size(); i++) {
314 assignment_change =
true;
335 bool assigned =
false;
344 available_users.
append(u);
350 bool assigned =
false;
359 available_users.
append(u);
364 assignment_change =
true;
367 for (
int i = 0; i < available_users.
size(); i++) {
368 NetUser* u = available_users[i];
396 if (assignment_change) {
399 for (
int i = 0; i < units.
size(); i++) {
410 sprintf_s(team,
"%d", e->
GetIFF());
418 user_name += u->
Name();
436 assignment_change =
false;
455 if (count++ > last_item) {
471 if (msg.
length() < 1)
return;
475 if (msg[0] >=
'0' && msg[0] <=
'9') {
495 static DWORD unit_click_time = 0;
527 assignment_change =
true;
549 assignment_change =
true;
565 assignment_change =
true;