From fd9c3cc7f9ce5e66c21b6dda762d7c58a32de57c Mon Sep 17 00:00:00 2001 From: Giles Williams Date: Mon, 10 Jul 2006 15:42:26 +0000 Subject: [PATCH] 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 --- src/Core/PlayerEntity.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/PlayerEntity.m b/src/Core/PlayerEntity.m index 5dedd796..608577ed 100644 --- a/src/Core/PlayerEntity.m +++ b/src/Core/PlayerEntity.m @@ -84,7 +84,7 @@ static Quaternion quaternion_identity = { (GLfloat)1.0, (GLfloat)0.0, (GLfloat)0 { id key = [keys objectAtIndex:i]; id value = [kdic objectForKey: key]; - if ([value isKindOfClass:[NSString class]]) + if ([value isKindOfClass:[NSString class]] && ([value intValue] == 0)) { char keychar = 0; NSString* keystring = (NSString*)value;