From: hgn Date: Mon, 16 Jun 2025 12:38:49 +0000 (+0100) Subject: Make charshop normal X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=c6ae0b952ff7f89b108bca960a0afc767a176b7e;p=carveJwlIkooP6JGAAIwe30JlM.git Make charshop normal --- diff --git a/src/ent_skateshop.c b/src/ent_skateshop.c index d39d8ee..a1054da 100644 --- a/src/ent_skateshop.c +++ b/src/ent_skateshop.c @@ -527,7 +527,18 @@ entity_event_result ent_skateshop_event( ent_event *event ) gui_helper_reset( k_gui_helper_mode_clear ); - if( shop->type != k_skateshop_type_charshop ) + if( shop->type == k_skateshop_type_charshop ) + { + struct addon_cache *cache = &_addon.cache[ k_addon_type_player ]; + addon_cache_entry *cache_entry = vg_pool_item( &cache->pool, localplayer.playermodel.cache_slot ); + u32 index; + if( _addon_get_filtered_index( k_addon_type_player, cache_entry->addon_id, 0, ADDON_REG_HIDDEN, &index ) ) + { + } + else index = 0; + _skateshop.selected_player_index = index; + } + else ent_skateshop_helpers_pickable( "Pick" ); _skateshop.open = 1;