From: chsieh Date: Fri, 27 May 2011 04:53:08 +0000 (-0700) Subject: Fixing more compile errors. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=d0b5d61c5e4c3281a8b353494b9601aeb90b02a6;p=tanks-ios.git Fixing more compile errors. --- diff --git a/src/physics/debug/QQPhysicsDebugView.mm b/src/physics/debug/QQPhysicsDebugView.mm index 713ce9b..0c1ea25 100644 --- a/src/physics/debug/QQPhysicsDebugView.mm +++ b/src/physics/debug/QQPhysicsDebugView.mm @@ -111,7 +111,7 @@ /// Events /// - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { - panning = false; + _panning = false; for (UITouch *touch in touches) { CGPoint touchLocation = [touch locationInView:self]; CGPoint worldPosition = [self screenSpaceToWorldSpace:touchLocation]; @@ -132,7 +132,7 @@ CGPoint screenDistanceMoved = CGPointMake(touchLocation.x-lastScreenTouch.x,touchLocation.y-lastScreenTouch.y); - if (panning) { + if (_panning) { screenDistanceMoved.x /= 160; screenDistanceMoved.y /= 160; screenDistanceMoved.x *= sceneScale; @@ -154,7 +154,7 @@ - (void) accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration { // Only run for valid values if (acceleration.y != 0 && acceleration.x != 0) { - if (self.world) [self.world setGravityX:acceleration.x Y:acceleration.y]; + if (self.world) [self.world setGravityX:acceleration.x y:acceleration.y]; } }