Removed some strlwr calls for -use_players_dir since it uses Uppercase letters
This commit is contained in:
parent
baf266b648
commit
190ed46530
|
@ -1,5 +1,9 @@
|
||||||
D2X-Rebirth Changelog
|
D2X-Rebirth Changelog
|
||||||
|
|
||||||
|
20070928
|
||||||
|
--------
|
||||||
|
main/gameseq.c, main/inferno.c, main/playsave.c: Removed some strlwr calls for -use_players_dir since it uses Uppercase letters
|
||||||
|
|
||||||
20070927
|
20070927
|
||||||
--------
|
--------
|
||||||
main/gamerend.c: Removed line_spacing for not connected players in Netgame info screen
|
main/gamerend.c: Removed line_spacing for not connected players in Netgame info screen
|
||||||
|
|
|
@ -683,6 +683,8 @@ try_again:
|
||||||
|
|
||||||
if (text[0]==0) //null string
|
if (text[0]==0) //null string
|
||||||
goto try_again;
|
goto try_again;
|
||||||
|
|
||||||
|
strlwr(text);
|
||||||
sprintf( filename, GameArg.SysUsePlayersDir? "Players/%s.plr" : "%s.plr", text );
|
sprintf( filename, GameArg.SysUsePlayersDir? "Players/%s.plr" : "%s.plr", text );
|
||||||
|
|
||||||
if (PHYSFS_exists(filename))
|
if (PHYSFS_exists(filename))
|
||||||
|
|
|
@ -458,7 +458,6 @@ int main(int argc, char *argv[])
|
||||||
filename[j] = '\0';
|
filename[j] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
strlwr(filename);
|
|
||||||
if(!strstr(filename,".plr")) // if player hasn't specified .plr extension in argument, add it
|
if(!strstr(filename,".plr")) // if player hasn't specified .plr extension in argument, add it
|
||||||
strcat(filename,".plr");
|
strcat(filename,".plr");
|
||||||
if(cfexist(filename))
|
if(cfexist(filename))
|
||||||
|
|
|
@ -497,7 +497,6 @@ int read_player_file()
|
||||||
|
|
||||||
filename[strlen(filename) - 4] = 0;
|
filename[strlen(filename) - 4] = 0;
|
||||||
strcat(filename, ".plx");
|
strcat(filename, ".plx");
|
||||||
strlwr(filename);
|
|
||||||
read_player_d2x(filename);
|
read_player_d2x(filename);
|
||||||
|
|
||||||
return EZERO;
|
return EZERO;
|
||||||
|
@ -584,7 +583,6 @@ int write_player_file()
|
||||||
WriteConfigFile();
|
WriteConfigFile();
|
||||||
|
|
||||||
sprintf(filename, GameArg.SysUsePlayersDir? "Players/%.8s.plx" : "%.8s.plx", Players[Player_num].callsign);
|
sprintf(filename, GameArg.SysUsePlayersDir? "Players/%.8s.plx" : "%.8s.plx", Players[Player_num].callsign);
|
||||||
strlwr(filename);
|
|
||||||
write_player_d2x(filename);
|
write_player_d2x(filename);
|
||||||
sprintf(filename, GameArg.SysUsePlayersDir? "Players/%.8s.plr" : "%.8s.plr", Players[Player_num].callsign);
|
sprintf(filename, GameArg.SysUsePlayersDir? "Players/%.8s.plr" : "%.8s.plr", Players[Player_num].callsign);
|
||||||
file = PHYSFSX_openWriteBuffered(filename);
|
file = PHYSFSX_openWriteBuffered(filename);
|
||||||
|
|
Loading…
Reference in a new issue