fixed problem misreading ASCII versions of keyconfig.plist

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@651 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Giles Williams 2006-07-10 15:42:26 +00:00
parent c21dd5fccd
commit fd9c3cc7f9

View File

@ -84,7 +84,7 @@ static Quaternion quaternion_identity = { (GLfloat)1.0, (GLfloat)0.0, (GLfloat)0
{ {
id key = [keys objectAtIndex:i]; id key = [keys objectAtIndex:i];
id value = [kdic objectForKey: key]; id value = [kdic objectForKey: key];
if ([value isKindOfClass:[NSString class]]) if ([value isKindOfClass:[NSString class]] && ([value intValue] == 0))
{ {
char keychar = 0; char keychar = 0;
NSString* keystring = (NSString*)value; NSString* keystring = (NSString*)value;