only read and write lowercase pilots - prevents mistakes in -pilot option as well as multisaves

This commit is contained in:
zicodxx 2007-01-18 18:58:18 +00:00
parent 73843e88c2
commit cf971d1130
3 changed files with 3 additions and 3 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20070118
--------
main/kconfig.c: prevent changing weapons if automap is active
main/inferno.c, main/gameseq.c: only read and write lowercase pilots - prevents mistakes in -pilot option as well as multisaves
20070117
--------

View file

@ -893,7 +893,7 @@ try_again:
goto try_again; // They hit Esc during New player config
strncpy(Players[Player_num].callsign, text, CALLSIGN_LEN);
strupr(Players[Player_num].callsign);
strlwr(Players[Player_num].callsign);
init_game_list(); //init to defaults
@ -947,7 +947,7 @@ do_menu_again:
goto do_menu_again;
} else {
strncpy(Players[Player_num].callsign,filename, CALLSIGN_LEN);
strupr(Players[Player_num].callsign);
strlwr(Players[Player_num].callsign);
}
read_player_file();

View file

@ -626,7 +626,6 @@ int main(int argc,char **argv)
{
strcpy(strstr(filename,".plr"),"\0");
strcpy(Players[Player_num].callsign,filename);
strupr(Players[Player_num].callsign);
read_player_file();
Auto_leveling_on = Default_leveling_on;
WriteConfigFile();