Skip to content

Commit e01c5bf

Browse files
committed
Merge branch 'develop' of https://github.com/spritebuilder/cocos2d-swift into private-develop
2 parents 4bf8ad0 + 290dbc1 commit e01c5bf

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

cocos2d-ui/CCBReader/CCAnimationManager.m

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,11 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
465465
_paused = YES;
466466
[self clearAllActions];
467467

468+
// Set the running scene
469+
_runningSequence = [self sequenceFromSequenceId:seqId];
470+
_runningSequence.time = 0.0f;
471+
_runningSequence.tween = tweenDuration;
472+
468473
[self addSequenceCallBacks:seqId tweenDuration:tweenDuration startTime:0];
469474

470475
// Contains all Sequence Propertys / Keyframe
@@ -506,25 +511,12 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
506511
}
507512
}
508513
}
509-
510-
// Reset nodes that have sequence node properties, build first keyframe action sequence.
511-
for (NSString* propName in seqNodeProps) {
512-
CCBSequenceProperty* seqProp = [seqNodeProps objectForKey:propName];
513-
[seqNodePropNames addObject:propName];
514-
515-
// Reset Node State to First KeyFrame
516-
[self setKeyFrameForNode:node sequenceProperty:seqProp tweenDuration:tweenDuration keyFrame:0];
517-
518-
}
514+
519515
}
520516

521517

522518
}
523519

524-
// Set the running scene
525-
_runningSequence = [self sequenceFromSequenceId:seqId];
526-
_runningSequence.time = 0.0f;
527-
528520
_paused = NO;
529521
}
530522

external/ObjectAL/Session/OALAudioSession.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#import "ARCSafe_MemMgmt.h"
3434
#import "OALNotifications.h"
3535

36-
#if __CC_PLATFORM_IOS || __CC_PLATFORM_MAC
36+
#if __CC_PLATFORM_IOS
3737

3838
#import <AudioToolbox/AudioToolbox.h>
3939
#import "IOSVersion.h"
@@ -780,7 +780,8 @@ - (void)inputIsAvailableChanged:(BOOL)isInputAvailable
780780

781781
#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED */
782782

783-
#elif __CC_PLATFORM_ANDROID // ANDROID
783+
784+
#elif __CC_PLATFORM_ANDROID || __CC_PLATFORM_MAC// ANDROID
784785
#pragma mark Android OALAudioSession
785786
#import "CCDirector.h"
786787
@implementation OALAudioSession

0 commit comments

Comments
 (0)