When reading the stereo settings, check if we're at EOF, and if so, don't try to read it.
Attack key:
mouse1
Chat key:
Attack key:
mouse1
Chat key:
-unknown
\ No newline at end of file
+unknown
+StereoMode:
+0
+StereoSeparation:
+0.05
+StereoReverse:
+0
game.chatkey=CharToKey(string);
ipstream.ignore(256,'\n');
ipstream.ignore(256,'\n');
game.chatkey=CharToKey(string);
ipstream.ignore(256,'\n');
ipstream.ignore(256,'\n');
- ipstream >> i;
- stereomode = (StereoMode)i;
- ipstream.ignore(256,'\n');
- ipstream.ignore(256,'\n');
- ipstream >> stereoseparation;
- ipstream.ignore(256,'\n');
- ipstream.ignore(256,'\n');
- ipstream >> stereoreverse;
-
+ if (!ipstream.eof()) {
+ ipstream >> i;
+ stereomode = (StereoMode)i;
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> stereoseparation;
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> stereoreverse;
+ }
ipstream.close();
if(detail>2)detail=2;
ipstream.close();
if(detail>2)detail=2;