mirror of https://github.com/axmolengine/axmol.git
issue #4541: s_globalOrderOfArrival is an static variable of Node class.
This commit is contained in:
parent
9a8cf6d813
commit
45b98e7dc0
|
@ -72,7 +72,7 @@ bool nodeComparisonLess(Node* n1, Node* n2)
|
|||
}
|
||||
|
||||
// XXX: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
|
||||
static int s_globalOrderOfArrival = 1;
|
||||
int Node::s_globalOrderOfArrival = 1;
|
||||
|
||||
Node::Node(void)
|
||||
: _rotationX(0.0f)
|
||||
|
|
|
@ -1452,6 +1452,8 @@ protected:
|
|||
bool _cascadeColorEnabled;
|
||||
bool _cascadeOpacityEnabled;
|
||||
|
||||
static int s_globalOrderOfArrival;
|
||||
|
||||
private:
|
||||
CC_DISALLOW_COPY_AND_ASSIGN(Node);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue