equal
deleted
inserted
replaced
238 char name[NETWORK_GRF_NAME_LENGTH]; |
238 char name[NETWORK_GRF_NAME_LENGTH]; |
239 |
239 |
240 /* The name could be an empty string, if so take the filename */ |
240 /* The name could be an empty string, if so take the filename */ |
241 ttd_strlcpy(name, (in_reply[i]->name != NULL && !StrEmpty(in_reply[i]->name)) ? |
241 ttd_strlcpy(name, (in_reply[i]->name != NULL && !StrEmpty(in_reply[i]->name)) ? |
242 in_reply[i]->name : in_reply[i]->filename, sizeof(name)); |
242 in_reply[i]->name : in_reply[i]->filename, sizeof(name)); |
243 this->Send_GRFIdentifier(&packet, in_reply[i]); |
243 this->Send_GRFIdentifier(&packet, in_reply[i]); |
244 packet.Send_string(name); |
244 packet.Send_string(name); |
245 } |
245 } |
246 |
246 |
247 this->SendPacket(&packet, client_addr); |
247 this->SendPacket(&packet, client_addr); |
248 } |
248 } |