hand slides
[carveJwlIkooP6JGAAIwe30JlM.git] / world_gate.c
index ba4701c81a5097b4ebe81f48f9303ccc222752a2..1631e05dc535b65ea19b925e65962e03271c7743 100644 (file)
@@ -171,7 +171,7 @@ static int render_gate( world_instance *world, world_instance *world_inside,
    glStencilOp( GL_KEEP, GL_KEEP, GL_REPLACE );  
    glStencilFunc( GL_ALWAYS, 1, 0xFF ); 
    glStencilMask( 0xFF );
-   glDisable( GL_CULL_FACE );
+   glEnable( GL_CULL_FACE );
 
    m4x3f mmdl;
    ent_gate_get_mdl_mtx( gate, mmdl );
@@ -326,6 +326,10 @@ static void world_link_nonlocal_async( void *payload, u32 size ){
       ent_gate *gate = mdl_arritm( &world->ent_gate, j );
       gate_transform_update( gate );
 
+      if( skaterift.demo_mode )
+         if( world_static.instance_addons[world_id]->flags & ADDON_REG_PREMIUM )
+            continue;
+
       if( !(gate->flags & k_ent_gate_nonlocal) ) continue;
       if( gate->flags & k_ent_gate_linked ) continue;