X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world.c;h=f8d7168a1ca781a99c60fe1a733d2394035bedff;hb=fbd4abfae41847dcdf4e32ac2c43d79ecaf0f708;hp=550ac508f0c894a64412a73923fe92cc3289068b;hpb=ca1798f62b65b72703e960d132dd0170728b7709;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world.c b/world.c index 550ac50..f8d7168 100644 --- a/world.c +++ b/world.c @@ -41,6 +41,13 @@ static void world_switch_instance( u32 index ){ return; } + if( skaterift.demo_mode ){ + if( world_static.instance_addons[index]->flags & ADDON_REG_PREMIUM ){ + vg_error( "Can't switch to a premium world in the demo version\n" ); + return; + } + } + world_instance *current = &world_static.instances[ world_static.active_instance ]; @@ -52,7 +59,6 @@ static void world_switch_instance( u32 index ){ v3_copy( new->player_co, localplayer.rb.co ); world_static.active_instance = index; - player__reset(); }