| 1313 | } |
| 1314 | |
| 1315 | void zEntPickup_Render(zEntPickup* plist, U32 pcount) |
| 1316 | { |
| 1317 | xLightKit_Enable(NULL, globals.currWorld); |
| 1318 | |
| 1319 | for (U32 i = 0; i < pcount; plist++, i++) |
| 1320 | { |
| 1321 | if (xEntIsVisible(plist) && !(plist->model->Flags & 0x400)) |
| 1322 | { |
| 1323 | RwMatrix* mat = plist->model->Mat; |
| 1324 | |
| 1325 | if (plist->p->pickupType == 1 && plist->p->pickupIndex == 1 && |
| 1326 | globals.player.Health >= globals.player.MaxHealth) |
| 1327 | { |
| 1328 | set_alpha_blend(plist->model); |
| 1329 | |
| 1330 | plist->model->Alpha = sUnderwearFade; |
| 1331 | |
| 1332 | xModelBucket_Add(plist->model); |
| 1333 | |
| 1334 | *(xMat3x3*)mat = *(xMat3x3*)&sPickupOrientation; |
| 1335 | } |
| 1336 | } |
| 1337 | } |
| 1338 | } |
| 1339 | |
| 1340 | // equivalent: float load scheduling |
| 1341 | void zEntPickup_RenderOne(xEnt* ent) |
no test coverage detected