only read and write lowercase pilots - prevents mistakes in -pilot option as well as multisaves
This commit is contained in:
parent
73843e88c2
commit
cf971d1130
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
||||||
20070118
|
20070118
|
||||||
--------
|
--------
|
||||||
main/kconfig.c: prevent changing weapons if automap is active
|
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
|
20070117
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -893,7 +893,7 @@ try_again:
|
||||||
goto try_again; // They hit Esc during New player config
|
goto try_again; // They hit Esc during New player config
|
||||||
|
|
||||||
strncpy(Players[Player_num].callsign, text, CALLSIGN_LEN);
|
strncpy(Players[Player_num].callsign, text, CALLSIGN_LEN);
|
||||||
strupr(Players[Player_num].callsign);
|
strlwr(Players[Player_num].callsign);
|
||||||
|
|
||||||
init_game_list(); //init to defaults
|
init_game_list(); //init to defaults
|
||||||
|
|
||||||
|
@ -947,7 +947,7 @@ do_menu_again:
|
||||||
goto do_menu_again;
|
goto do_menu_again;
|
||||||
} else {
|
} else {
|
||||||
strncpy(Players[Player_num].callsign,filename, CALLSIGN_LEN);
|
strncpy(Players[Player_num].callsign,filename, CALLSIGN_LEN);
|
||||||
strupr(Players[Player_num].callsign);
|
strlwr(Players[Player_num].callsign);
|
||||||
}
|
}
|
||||||
|
|
||||||
read_player_file();
|
read_player_file();
|
||||||
|
|
|
@ -626,7 +626,6 @@ int main(int argc,char **argv)
|
||||||
{
|
{
|
||||||
strcpy(strstr(filename,".plr"),"\0");
|
strcpy(strstr(filename,".plr"),"\0");
|
||||||
strcpy(Players[Player_num].callsign,filename);
|
strcpy(Players[Player_num].callsign,filename);
|
||||||
strupr(Players[Player_num].callsign);
|
|
||||||
read_player_file();
|
read_player_file();
|
||||||
Auto_leveling_on = Default_leveling_on;
|
Auto_leveling_on = Default_leveling_on;
|
||||||
WriteConfigFile();
|
WriteConfigFile();
|
||||||
|
|
Loading…
Reference in a new issue