if( begins )
{
if( ends )
- {
return count;
- }
else
{
+ out_cpart[0] = '\0';
vg_error( "While extracting custom part from uid '%s', encounted too long custom string.\n", uid );
return 0;
}
}
- else return 0;
+ else
+ {
+ out_cpart[0] = '\0';
+ return 0;
+ }
}
/*
mh = ml-mr,
mv = mu-md;
+ static f32 repeater;
+ if( repeater > 0.0f )
+ {
+ repeater -= vg_minf( vg.time_frame_delta, 0.5f );
+ mv = 0;
+ mh = 0;
+ }
+ else
+ if( mv || mh )
+ repeater += 0.2f;
+
if( vg_input.display_input_method == k_input_method_controller )
{
menu_nav( &_ent_route.cursor[1], mv, _ent_route.entries_max-1 );
mv = mu-md,
enter = button_down( k_srbind_maccept );
- i32 R = menu_nav( &_skateshop.charshop_row, mv, _skateshop.charshop_row_max );
-
- if( menu.repeater > 0.0f )
+ static f32 repeater;
+ if( repeater > 0.0f )
{
- menu.repeater -= vg_minf( vg.time_frame_delta, 0.5f );
+ repeater -= vg_minf( vg.time_frame_delta, 0.5f );
mv = 0;
mh = 0;
}
else
if( mv || mh )
- menu.repeater += R==0? 0.2f: 0.17f;
+ repeater += 0.17f;
+
+ i32 R = menu_nav( &_skateshop.charshop_row, mv, _skateshop.charshop_row_max );
ui_rect panel = { 8, 8, 350, vg.window_y };
ui_fill( ctx, panel, ui_opacity( GUI_COL_DARK, 0.35f ) );
player->playermodel.cache_slot = addon_cache_create_viewer_from_uid( k_addon_type_player, uid );
char cpart[ ADDON_CPART_MAX ];
- if( addon_uid_get_custom_part( uid, cpart ) )
- playermodel_use_cpart( &player->playermodel, cpart );
+ addon_uid_get_custom_part( uid, cpart );
+ playermodel_use_cpart( &player->playermodel, cpart );
}
else if( item->type_index == k_netmsg_playeritem_world0 )
- {
relink_remote_player_worlds( item->client );
- }
}
else if( tmp->inetmsg_id == k_inetmsg_chat )
{
"AppBuild"\r
{\r
- "AppID" "2103940"\r
- "Desc" "SR Multi-build"\r
+ "AppID" "2103940"\r
+ "Desc" "SR Multi-build"\r
\r
- "ContentRoot" "/home/harry/Documents/carve/dist/"\r
- "BuildOutput" "dist/steam_cache"\r
+ "ContentRoot" "/home/harry/Documents/carve/dist/"\r
+ "BuildOutput" "dist/steam_cache"\r
\r
- "Depots"\r
- {\r
- "2103942" // Linux Binary\r
- {\r
- "FileMapping"\r
- {\r
- "LocalPath" "bin/skaterift-linux-x86_64-zig-cc/*"\r
- "DepotPath" "."\r
- "recursive" "1"\r
- }\r
- }\r
- "2103941" // Windows Binary\r
- {\r
- "FileMapping"\r
- {\r
- "LocalPath" "bin/skaterift-windows-x86_64-zig-cc/*"\r
- "DepotPath" "."\r
- "recursive" "1"\r
- }\r
- }\r
+ "Depots"\r
+ {\r
+ "2103942" // Linux Binary\r
+ {\r
+ "FileMapping"\r
+ {\r
+ "LocalPath" "bin/skaterift-linux-x86_64-zig-cc/*"\r
+ "DepotPath" "."\r
+ "recursive" "1"\r
+ }\r
+ }\r
+ "2103941" // Windows Binary\r
+ {\r
+ "FileMapping"\r
+ {\r
+ "LocalPath" "bin/skaterift-windows-x86_64-zig-cc/*"\r
+ "DepotPath" "."\r
+ "recursive" "1"\r
+ }\r
+ }\r
"2103943" // Shared Content\r
{\r
"FileMapping"\r
"recursive" "0"\r
}\r
}\r
- }\r
+ }\r
}\r
"AppBuild"\r
{\r
- "AppID" "2720160"\r
- "Desc" "SR Demo"\r
+ "AppID" "2720160"\r
+ "Desc" "SR Demo"\r
\r
- "ContentRoot" "/home/harry/Documents/carve/dist/"\r
- "BuildOutput" "dist/steam_cache"\r
+ "ContentRoot" "/home/harry/Documents/carve/dist/"\r
+ "BuildOutput" "dist/steam_cache"\r
\r
- "Depots"\r
- {\r
- "2720161" // Linux Binary\r
- {\r
- "FileMapping"\r
- {\r
- "LocalPath" "bin/skaterift-demo/*"\r
- "DepotPath" "."\r
- "recursive" "1"\r
- }\r
- }\r
- }\r
+ "Depots"\r
+ {\r
+ "2720161" // Linux Binary\r
+ {\r
+ "FileMapping"\r
+ {\r
+ "LocalPath" "bin/skaterift-demo/*"\r
+ "DepotPath" "."\r
+ "recursive" "1"\r
+ }\r
+ }\r
+ }\r
}\r