| 1406 | } |
| 1407 | |
| 1408 | void ItemObjMgr::update(ItemObjMgr::eDrawSimplModelItemType type, int id) { |
| 1409 | |
| 1410 | for(int i = 0; i < 15; i++) { |
| 1411 | for (JSUListIterator<ItemObj> it(_3e8[sJ3DUpdateItemKind[i]].getFirst()); it.isAvailable(); ++it) { |
| 1412 | bool doUpdate = true; |
| 1413 | switch(type) { |
| 1414 | case ItemType_1: { |
| 1415 | if (it->IsState1or5AndSameOwner(id)) |
| 1416 | doUpdate = false; |
| 1417 | break; |
| 1418 | } |
| 1419 | case ItemType_2: { |
| 1420 | doUpdate = false; |
| 1421 | int state = it->getState(); |
| 1422 | if (state != 1 && state != 5) |
| 1423 | doUpdate = true; |
| 1424 | break; |
| 1425 | } |
| 1426 | } |
| 1427 | |
| 1428 | if (doUpdate) { |
| 1429 | it->setLightMask(); |
| 1430 | it->setTevColor(); |
| 1431 | it->update(); |
| 1432 | } |
| 1433 | } |
| 1434 | } |
| 1435 | } |
| 1436 | |
| 1437 | void ItemObjMgr::viewCalc(u32 viewNo) { |
| 1438 | J3DUClipper *clipper = GetKartCtrl()->getKartCam(viewNo)->GetClipper(); |
nothing calls this directly
no test coverage detected