* VG event preupdate
*/
void temp_update_playermodel(void);
-void ent_skateshop_preupdate( ent_skateshop *shop, int active )
+void ent_skateshop_preupdate( ent_focus_context *ctx )
{
- if( !active ) return;
+ if( !ctx->active )
+ return;
- /* input filter */
- world_instance *world = world_current_instance();
+ world_instance *world = ctx->world;
+ ent_skateshop *shop = mdl_arritm( &world->ent_skateshop, ctx->index );
/* camera positioning */
ent_camera *ref = mdl_arritm( &world->ent_camera,