diff --git a/source/duke3d/src/anim.cpp b/source/duke3d/src/anim.cpp index 849e88203..64b03531c 100644 --- a/source/duke3d/src/anim.cpp +++ b/source/duke3d/src/anim.cpp @@ -370,7 +370,7 @@ int32_t Anim_Play(const char *fn) { G_HandleAsync(); - if (I_CheckAllInput()) + if (VM_OnEventWithReturn(EVENT_SKIPCUTSCENE, -1, myconnectindex, I_CheckAllInput())) { running = 0; break; @@ -473,7 +473,7 @@ int32_t Anim_Play(const char *fn) waloff[TILE_ANIM] = (intptr_t)ANIM_DrawFrame(i); invalidatetile(TILE_ANIM, 0, 1 << 4); // JBF 20031228 - if (I_CheckAllInput()) + if (VM_OnEventWithReturn(EVENT_SKIPCUTSCENE, -1, myconnectindex, I_CheckAllInput())) { running = 0; goto end_anim_restore_gl; diff --git a/source/duke3d/src/events_defs.h b/source/duke3d/src/events_defs.h index e341318d6..7d26931d5 100644 --- a/source/duke3d/src/events_defs.h +++ b/source/duke3d/src/events_defs.h @@ -126,6 +126,7 @@ enum GameEvent_t { EVENT_PRELOADGAME, EVENT_POSTSAVEGAME, EVENT_PRECUTSCENE, + EVENT_SKIPCUTSCENE, #ifdef LUNATIC EVENT_ANIMATEALLSPRITES, #endif diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 55fa84ce5..14bae3664 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -720,6 +720,7 @@ const char *EventNames[MAXEVENTS] = "EVENT_PRELOADGAME", "EVENT_POSTSAVEGAME", "EVENT_PRECUTSCENE", + "EVENT_SKIPCUTSCENE", #ifdef LUNATIC "EVENT_ANIMATEALLSPRITES", #endif