| 312 | } |
| 313 | |
| 314 | void zCutsceneMgrFinishExit(xBase* to) |
| 315 | { |
| 316 | zCutsceneMgr* t = (zCutsceneMgr*)to; |
| 317 | |
| 318 | while (1) |
| 319 | { |
| 320 | iFileAsyncService(); |
| 321 | xSndUpdate(); |
| 322 | if (t->csn->Waiting == 0) |
| 323 | break; |
| 324 | iVSync(); |
| 325 | } |
| 326 | if (donpcfx != 0) |
| 327 | { |
| 328 | zNPCFXCutsceneDone(globals.sceneCur, 0.0f, t); |
| 329 | } |
| 330 | donpcfx = 0; |
| 331 | if (xCutscene_Destroy(t->csn) == 0) |
| 332 | { |
| 333 | return; |
| 334 | } |
| 335 | |
| 336 | zEntEvent(&globals.player.ent, 9); |
| 337 | zEntEvent(&globals.player.ent, 3); |
| 338 | zCutsceneMgrKillFX(t); |
| 339 | t->csn = NULL; |
| 340 | globals.cmgr = NULL; |
| 341 | } |
| 342 | |
| 343 | void zCutsceneMgrKillFX(zCutsceneMgr* t) |
| 344 | { |
no test coverage detected