| 528 | } |
| 529 | |
| 530 | void zNPCMgr::ScenePostRender() |
| 531 | { |
| 532 | xLightKit_Enable(globals.player.ent.lightKit, globals.currWorld); |
| 533 | _SDRenderState old_rendstat = zRenderStateCurrent(); |
| 534 | zRenderState(SDRS_NPCVisual); |
| 535 | for (int i = 0; i < npclist.cnt; i++) |
| 536 | { |
| 537 | zNPCCommon* npc = (zNPCCommon*)npclist.list[i]; |
| 538 | if (npc->flg_xtrarend & 0x1) |
| 539 | { |
| 540 | npc->flg_xtrarend &= ~0x1; |
| 541 | } |
| 542 | else |
| 543 | { |
| 544 | continue; |
| 545 | } |
| 546 | |
| 547 | if (npc->baseFlags & 0x40) |
| 548 | { |
| 549 | continue; |
| 550 | } |
| 551 | |
| 552 | if (npc->model == NULL || !(npc->model->Flags & 0x400)) |
| 553 | { |
| 554 | npc->RenderExtra(); |
| 555 | } |
| 556 | } |
| 557 | xLightKit_Enable(0, globals.currWorld); |
| 558 | zRenderState(old_rendstat); |
| 559 | } |
| 560 | |
| 561 | void zNPCMgr::ScenePostParticleRender() |
| 562 | { |
no test coverage detected