diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 031ae16fee..db72c7af36 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -896,13 +896,11 @@ var Node = cc.Class({ */ zIndex: { get () { - // high bits for zIndex, 1 bit for - return (this._localZOrder & 0xffff0000) >> 16; + return this._localZOrder; }, set (value) { - var zIndex = (this._localZOrder & 0xffff0000) >> 16; - if (zIndex !== value) { - this._localZOrder = (this._localZOrder & 0x0000ffff) | (value << 16); + if (this._localZOrder !== value) { + this._localZOrder = value; if (this._parent) { this._parent._delaySort();