Skip to content

Commit e9099b5

Browse files
committed
[CCNode schedule:interval:] should not immediately invoke the method.
1 parent b34257c commit e9099b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ -(CCScheduler*) scheduler
11741174

11751175
-(CCTimer *) schedule:(SEL)selector interval:(CCTime)interval
11761176
{
1177-
return [self schedule:selector interval:interval repeat:CCTimerRepeatForever delay:0];
1177+
return [self schedule:selector interval:interval repeat:CCTimerRepeatForever delay:interval];
11781178
}
11791179

11801180
-(BOOL)unschedule_private:(SEL)selector

0 commit comments

Comments
 (0)