ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/RenegadeMapSelector/RenegadeConfig.cpp
(Generate patch)

Comparing trunk/RenegadeMapSelector/RenegadeConfig.cpp (file contents):
Revision 142 by douglas, 2003-05-07T19:22:15-07:00 vs.
Revision 143 by douglas, 2003-05-07T19:32:17-07:00

# Line 47 | Line 47 | bool RenegadeConfig::load()
47  
48          if (debug)
49          {
50 <                cerr << "linux = " << (linux ? "true" : "false") << "\nmaps = {\n";
50 >                cerr << "linux_ = " << (linux_ ? "true" : "false") << "\nmaps = {\n";
51  
52                  for (unsigned index = 0; index < maps.size(); index++)
53                  {
# Line 83 | Line 83 | void RenegadeConfig::save()
83  
84                  if (line == "MapName=")
85                  {
86 <                        fout << "MapName=" << maps[0] << (text.good() ? (linux ? "\r\n" :
86 >                        fout << "MapName=" << maps[0] << (text.good() ? (linux_ ? "\r\n" :
87                                  "\n") : "");
88                  }
89                  else if (line == "MapName00=")
# Line 94 | Line 94 | void RenegadeConfig::save()
94                                  sprintf(number, "%02u", index);
95  
96                                  fout << "MapName" << number << "=" << maps[index] << (index + 1
97 <                                        < maps.size() || text.good() ? (linux ? "\r\n" : "\n") : ""
98 <                                        );
97 >                                        < maps.size() || text.good() ? (linux_ ? "\r\n" : "\n") :
98 >                                        "");
99  
100                                  delete [] number;
101                          }
102                  }
103                  else
104                  {
105 <                        fout << line << (text.good() ? (linux ? "\r\n" : "\n") : "");
105 >                        fout << line << (text.good() ? (linux_ ? "\r\n" : "\n") : "");
106                  }
107          }
108          while (text.good());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines