src/misc_gui.cpp
changeset 8748 72c372800b54
parent 8738 05aca6d9471b
child 8785 871586967963
equal deleted inserted replaced
8747:d6c53cb184f3 8748:72c372800b54
  1443 		qsort(_fios_list + sort_start, s_amount, sizeof(FiosItem), compare_FiosItems);
  1443 		qsort(_fios_list + sort_start, s_amount, sizeof(FiosItem), compare_FiosItems);
  1444 }
  1444 }
  1445 
  1445 
  1446 static void GenerateFileName()
  1446 static void GenerateFileName()
  1447 {
  1447 {
  1448 	/* Check if we are not a specatator who wants to generate a name..
  1448 	/* Check if we are not a spectator who wants to generate a name..
  1449 	    Let's use the name of player #0 for now. */
  1449 	    Let's use the name of player #0 for now. */
  1450 	const Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST);
  1450 	const Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST);
  1451 
  1451 
  1452 	SetDParam(0, p->index);
  1452 	SetDParam(0, p->index);
  1453 	SetDParam(1, _date);
  1453 	SetDParam(1, _date);