network_gui.c
changeset 4416 442b18840569
parent 4354 10f4ce894eb1
child 4491 7b74fd94004d
equal deleted inserted replaced
4415:720570b96364 4416:442b18840569
  1510 	/* Then, try townnames */
  1510 	/* Then, try townnames */
  1511 	if (*item < (uint)MAX_CLIENT_INFO + GetTownArraySize()) {
  1511 	if (*item < (uint)MAX_CLIENT_INFO + GetTownArraySize()) {
  1512 		const Town *t;
  1512 		const Town *t;
  1513 
  1513 
  1514 		FOR_ALL_TOWNS_FROM(t, *item - MAX_CLIENT_INFO) {
  1514 		FOR_ALL_TOWNS_FROM(t, *item - MAX_CLIENT_INFO) {
  1515 			int32 temp[1];
       
  1516 
       
  1517 			/* Get the town-name via the string-system */
  1515 			/* Get the town-name via the string-system */
  1518 			temp[0] = t->townnameparts;
  1516 			SetDParam(0, t->townnameparts);
  1519 			GetStringWithArgs(chat_tab_temp_buffer, t->townnametype, temp);
  1517 			GetString(chat_tab_temp_buffer, t->townnametype);
  1520 			return &chat_tab_temp_buffer[0];
  1518 			return &chat_tab_temp_buffer[0];
  1521 		}
  1519 		}
  1522 	}
  1520 	}
  1523 
  1521 
  1524 	return NULL;
  1522 	return NULL;