@@ -240,7 +240,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(CCTouchEvent *)event
240
240
// go through all touches
241
241
for (CCTouch *touch in touches)
242
242
{
243
- CGPoint worldTouchLocation = [[CCDirector sharedDirector ] convertToGL: [touch locationInView: (CCGLView*) [CCDirector sharedDirector ].view]];
243
+ CGPoint worldTouchLocation = [[CCDirector sharedDirector ] convertToGL: [touch locationInView: [CCDirector sharedDirector ].view]];
244
244
245
245
// scan backwards through touch responders
246
246
for (int index = _responderListCount - 1 ; index >= 0 ; index --)
@@ -317,7 +317,7 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(CCTouchEvent *)event
317
317
else
318
318
{
319
319
// as node does not lock touch, check if it was moved outside
320
- if (![node hitTestWithWorldPos: [[CCDirector sharedDirector ] convertToGL: [touch locationInView: (CCGLView*) [CCDirector sharedDirector ].view]]])
320
+ if (![node hitTestWithWorldPos: [[CCDirector sharedDirector ] convertToGL: [touch locationInView: [CCDirector sharedDirector ].view]]])
321
321
{
322
322
// cancel the touch
323
323
if ([node respondsToSelector: @selector (touchCancelled:withEvent: )])
@@ -346,7 +346,7 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(CCTouchEvent *)event
346
346
CCNode *node = _responderList[index];
347
347
348
348
// if the touch responder does not lock touch, it will receive a touchBegan if a touch is moved inside
349
- if (!node.claimsUserInteraction && [node hitTestWithWorldPos: [[CCDirector sharedDirector ] convertToGL: [touch locationInView: (CCGLView*) [CCDirector sharedDirector ].view ]]])
349
+ if (!node.claimsUserInteraction && [node hitTestWithWorldPos: [[CCDirector sharedDirector ] convertToGL: [touch locationInView: [CCDirector sharedDirector ].view]]])
350
350
{
351
351
// check if node has exclusive touch
352
352
if (node.isExclusiveTouch )
0 commit comments