56 : link(0), local_user(0), last_send_time(0), active(true),
57 selected_mission(0), mission(0), status(0)
112 static char buffer[256];
116 if (msg->
Length() < 250) {
117 ZeroMemory(buffer,
sizeof(buffer));
118 CopyMemory(buffer, msg->
Data()+2, msg->
Length()-2);
121 else if (msg->
Length() < 1024 * 1024) {
122 text =
new(__FILE__,__LINE__)
char[msg->
Length()];
123 ZeroMemory(text, msg->
Length());
124 CopyMemory(text, msg->
Data()+2, msg->
Length()-2);
128 switch (msg->
Type()) {
151 if (text && text != buffer)
207 Print(
"NetLobby User Logged In - name: '%s' id: %d host: %d\n",
227 Print(
"NetLobby User Logged Out - name: '%s' id: %d host: %d\n",
271 for (
int i = 0; i <
users.
size() && !host; i++) {
339 if (!_stricmp(u->
Name(), name))
368 Token name = lexer.Get();
371 Token value = lexer.Get();
375 if (val[0] ==
'"' && val[val.
length()-1] ==
'"') {
405 if (user && msg && *msg)
514 int campaign_id = -1;
523 campaign = c_iter.
value();
540 if (elem->
Count() == 1) {
544 for (
int i = 0; i < elem->
Count(); i++)
581 : index(n), lock(false), lives(1), hull(100), role(0)
593 : elem(e), design(d), iff(i), index(n), lock(false), lives(1),
604 static char buffer[1024];
606 sprintf_s(buffer,
"name \"%s\" index %d design \"%s\" iff %d user \"%s\" lives %d hull %d role %d lock %d ",
620 return "name \"Not Found\" ";
628 : nplayers(0), hosted(0), status(0), port(0), gameport(0), save(false), ping_time(0)