bool CLevel::OrderZPred( const GameObjectPtr & obj1, const GameObjectPtr & obj2 ) { if ( obj1 != NULL && obj2 != NULL ) { return obj1->GetZ() < obj2->GetZ(); } return false; }