MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / cache_drop

Function cache_drop

src/SB/Game/zEntPlayerBungeeState.cpp:874–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872 }
873
874 void cache_drop(const drop_asset& drop, U32 size)
875 {
876 xMarkerAsset* marker = (xMarkerAsset*)xSTFindAsset(drop.marker, &size);
877 if (marker == NULL)
878 {
879 return;
880 }
881
882 if (size != sizeof(xMarkerAsset))
883 {
884 return;
885 }
886
887 shared.drop_cache[shared.drop_cache_size] = &drop;
888 shared.drop_marker_cache[shared.drop_cache_size] = marker;
889 shared.drop_cache_size++;
890 }
891
892 void init_cache()
893 {

Callers 1

init_cacheFunction · 0.85

Calls 1

xSTFindAssetFunction · 0.50

Tested by

no test coverage detected