16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59:19 +02:00

changes for consistency with shader version

This commit is contained in:
milek7
2018-11-02 12:48:59 +01:00
parent 19f1f62e93
commit 0d644561f9
2 changed files with 7 additions and 15 deletions

View File

@@ -7453,6 +7453,11 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
// guard against malformed config files with leading spaces
inputline.erase( 0, inputline.find_first_not_of( ' ' ) );
}
// trim CR at end (mainly for linux)
if (!inputline.empty() && inputline.back() == '\r')
inputline.pop_back();
if( inputline.length() == 0 ) {
startBPT = false;
continue;