| 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 | { |
no test coverage detected