| 72 | } |
| 73 | |
| 74 | void zGridReset(zScene* s) |
| 75 | { |
| 76 | hack_flag_shadows(s); |
| 77 | |
| 78 | for (U32 i = 0; i < s->num_ents; i++) |
| 79 | { |
| 80 | xBase* base = s->ents[i]; |
| 81 | if (base && (base->baseFlags & 0x20)) |
| 82 | { |
| 83 | if (base->baseType != eBaseTypeTrigger && base->baseType != eBaseTypeUI && |
| 84 | base->baseType != eBaseTypeUIFont && base->baseType != eBaseTypePlayer) |
| 85 | { |
| 86 | xEnt* ent = (xEnt*)base; |
| 87 | if (ent->bupdate) |
| 88 | { |
| 89 | ent->bupdate(ent, (xVec3*)&ent->model->Mat->pos); |
| 90 | } |
| 91 | else |
| 92 | { |
| 93 | xEntDefaultBoundUpdate(ent, (xVec3*)&ent->model->Mat->pos); |
| 94 | } |
| 95 | zGridUpdateEnt(ent); |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // WIP, the MIN/MAX stuff seem like they should be CLAMP |
| 102 | // but the codegen is different. Also, there are a bunch |
no test coverage detected