| 890 | } |
| 891 | |
| 892 | void init_cache() |
| 893 | { |
| 894 | shared.hook_cache_size = 0; |
| 895 | zScene& s = *globals.sceneCur; |
| 896 | hook_type* it = (hook_type*)s.baseList[eBaseTypeBungeeHook]; |
| 897 | hook_type* end = it + s.baseCount[eBaseTypeBungeeHook]; |
| 898 | for (; it != end; ++it) |
| 899 | { |
| 900 | cache_hook(*it); |
| 901 | } |
| 902 | |
| 903 | shared.drop_cache_size = 0; |
| 904 | S32 imax = xSTAssetCountByType('DYNA'); |
| 905 | U32 drop_type_id = xStrHash(drop_asset::type_name()); |
| 906 | for (S32 i = 0; i < imax; ++i) |
| 907 | { |
| 908 | U32 size = 0; |
| 909 | xDynAsset* a = (xDynAsset*)xSTFindAssetByType('DYNA', i, &size); |
| 910 | if (a == NULL) |
| 911 | { |
| 912 | continue; |
| 913 | } |
| 914 | if (a->type == drop_type_id) |
| 915 | { |
| 916 | cache_drop(*(drop_asset*)a, size); |
| 917 | } |
| 918 | } |
| 919 | } |
| 920 | |
| 921 | void common_update(xScene& sc, F32 dt) |
| 922 | { |
no test coverage detected