X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.c;h=1631e05dc535b65ea19b925e65962e03271c7743;hb=53b534974303043efaf1d887711fcd349f6a2885;hp=ba4701c81a5097b4ebe81f48f9303ccc222752a2;hpb=011d58eed52dab1ec6444b9a4d79365a66c38325;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.c b/world_gate.c index ba4701c..1631e05 100644 --- a/world_gate.c +++ b/world_gate.c @@ -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;