| 1120 | } |
| 1121 | |
| 1122 | S32 hanging_state_type::cb_cache_collisions::operator()(xEnt& ent, xGridBound& bound) |
| 1123 | { |
| 1124 | xCollis coll; |
| 1125 | |
| 1126 | if (!(ent.chkby & 0x10) || !(ent.penby & 0x10)) |
| 1127 | { |
| 1128 | return 1; |
| 1129 | } |
| 1130 | |
| 1131 | coll.flags = 0x0; |
| 1132 | xSphereHitsBound(&o, &ent.bound, &coll); |
| 1133 | |
| 1134 | if (!(coll.flags & 0x1)) |
| 1135 | { |
| 1136 | return 1; |
| 1137 | } |
| 1138 | |
| 1139 | if (ent.collLev == 0x5) |
| 1140 | { |
| 1141 | xSphereHitsModel(&o, ent.model, &coll); |
| 1142 | if (!(coll.flags & 0x1)) |
| 1143 | { |
| 1144 | return 1; |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | ent_info& cache_item = ent_cache[ent_cache_size]; |
| 1149 | cache_item.ent = &ent; |
| 1150 | cache_item.hits = 0; |
| 1151 | ent_cache_size++; |
| 1152 | |
| 1153 | return 1; |
| 1154 | } |
| 1155 | } // namespace |
| 1156 | |
| 1157 | void load(class xBase& data, class xDynAsset& asset, unsigned long) |
nothing calls this directly
no test coverage detected