Permalink
Browse files

Merge branch 'patch-1' of https://github.com/parrieta/Chipmunk2D

Add a fixed, deprecated alias for the old property.
  • Loading branch information...
2 parents 7569bff + ab43aa0 commit 0d00bf447551ce9ff51b8ae162ed6d075c58cfe6 @slembcke committed Oct 3, 2016
Showing with 3 additions and 1 deletion.
  1. +2 −1 objectivec/include/ObjectiveChipmunk/ChipmunkSpace.h
  2. +1 −0 objectivec/src/ChipmunkSpace.m
@@ -103,7 +103,8 @@
/**
Returns true if the space is currently executing a timestep.
*/
-@property(nonatomic, readonly) BOOL locked;
+@property(nonatomic, readonly) BOOL isLocked;
+@property(nonatomic, readonly) BOOL locked __deprecated;
/**
An object that this space is associated with. You can use this get a reference to your game state or controller object from within callbacks.
@@ -168,6 +168,7 @@ - (void)set##upper:(type)value {cpSpaceSet##upper(_space, value);};
getter(cpFloat, currentTimeStep, CurrentTimeStep);
- (BOOL)isLocked {return cpSpaceIsLocked(_space);}
+- (BOOL)locked {return self.isLocked;}
- (ChipmunkBody *)staticBody {return _staticBody;}

0 comments on commit 0d00bf4

Please sign in to comment.