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 ];
- if( index != world_static.active_instance )
+ if( index != world_static.active_instance ){
v3_copy( localplayer.rb.co, current->player_co );
+ skaterift_autosave(1);
+ }
+
v3_copy( new->player_co, localplayer.rb.co );
world_static.active_instance = index;
-
player__reset();
}
#include "world_water.c"
#include "world_audio.c"
#include "world_routes.c"
-#include "world_traffic.c"
static void world_update( world_instance *world, v3f pos ){
world_render.sky_time += world_render.sky_rate * vg.time_delta;
world_routes_update_timer_texts( world );
world_routes_update( world );
- world_traffic_update( world, pos );
+ ent_traffic_update( world, pos );
world_sfd_update( world, pos );
world_volumes_update( world, pos );
}