From cf971d1130ae04459220d9d85671a86ba28a79ca Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Thu, 18 Jan 2007 18:58:18 +0000 Subject: [PATCH] only read and write lowercase pilots - prevents mistakes in -pilot option as well as multisaves --- dxx-changelog.txt | 1 + main/gameseq.c | 4 ++-- main/inferno.c | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dxx-changelog.txt b/dxx-changelog.txt index 9b12fb58e..34be4908d 100755 --- a/dxx-changelog.txt +++ b/dxx-changelog.txt @@ -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 -------- diff --git a/main/gameseq.c b/main/gameseq.c index d8773b5ab..4f8da0b5c 100755 --- a/main/gameseq.c +++ b/main/gameseq.c @@ -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(); diff --git a/main/inferno.c b/main/inferno.c index 6b9c2b7d3..88bfe0cd1 100755 --- a/main/inferno.c +++ b/main/inferno.c @@ -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();