| 2707 | } |
| 2708 | |
| 2709 | void zSceneUpdate(F32 dt) |
| 2710 | { |
| 2711 | U32 i; |
| 2712 | S32 isPaused; |
| 2713 | zScene* s; |
| 2714 | xBase** b; |
| 2715 | |
| 2716 | if (0.0f == dt) |
| 2717 | { |
| 2718 | return; |
| 2719 | } |
| 2720 | |
| 2721 | isPaused = zGameIsPaused(); |
| 2722 | gSceneUpdateTime = dt; |
| 2723 | |
| 2724 | if (!isPaused) |
| 2725 | { |
| 2726 | zEntPickup_SceneUpdate(dt); |
| 2727 | zEntButton_SceneUpdate(dt); |
| 2728 | } |
| 2729 | |
| 2730 | xEntSetTimePassed(dt); |
| 2731 | |
| 2732 | if (globals.cmgr) |
| 2733 | { |
| 2734 | zCutsceneMgrUpdate(globals.cmgr, globals.sceneCur, dt); |
| 2735 | } |
| 2736 | |
| 2737 | s = globals.sceneCur; |
| 2738 | b = s->update_base; |
| 2739 | |
| 2740 | gUIMgr.PreUpdate(s, dt); |
| 2741 | |
| 2742 | if (s->baseCount[eBaseTypeUIFont]) |
| 2743 | { |
| 2744 | zUIFont* ui = (zUIFont*)s->baseList[eBaseTypeUIFont]; |
| 2745 | |
| 2746 | for (i = 0; i < s->baseCount[eBaseTypeUIFont]; i++) |
| 2747 | { |
| 2748 | zUIFont_PreUpdate(&ui[i], s, dt); |
| 2749 | } |
| 2750 | } |
| 2751 | |
| 2752 | if (!isPaused) |
| 2753 | { |
| 2754 | zNPCMgr_sceneTimestep(s, dt); |
| 2755 | } |
| 2756 | else if (s->sceneID == 'B101') |
| 2757 | { |
| 2758 | zNPCBSandy_GameIsPaused(s); |
| 2759 | } |
| 2760 | else if (s->sceneID == 'B201') |
| 2761 | { |
| 2762 | zNPCBPatrick_GameIsPaused(s); |
| 2763 | } |
| 2764 | |
| 2765 | ztextbox::update_all(*s, dt); |
| 2766 | ztalkbox::update_all(*s, dt); |
no test coverage detected