]> git.mxchange.org Git - flightgear.git/commitdiff
Add a few else statements to make the checking work correct. Thanks Tiago Gusmao...
authorehofman <ehofman>
Tue, 27 Jul 2004 16:35:34 +0000 (16:35 +0000)
committerehofman <ehofman>
Tue, 27 Jul 2004 16:35:34 +0000 (16:35 +0000)
src/Network/generic.cxx

index 14a25619361848dc81020a4aeb8094ec60d9dfd5..2fccc8d6d0887b3a397c8d0be92038f711cf9383 100644 (file)
@@ -79,9 +79,9 @@ FGGeneric::FGGeneric(string& config) {
 
         if ( line_sep_string == "newline" )
                 line_separator = '\n';
-        if ( line_sep_string == "tab" )
+        else if ( line_sep_string == "tab" )
                 line_separator = '\t';
-        if ( line_sep_string == "space" )
+        else if ( line_sep_string == "space" )
                 line_separator = ' ';
         else if ( line_sep_string == "formfeed" )
                 line_separator = '\f';