From 4e008adcbdde26f661d027a872ce2fa05cfcc209 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 6 Sep 2018 01:26:23 +0200 Subject: [PATCH] Add two doom function from debug --- Source/doom.cpp | 20 ++++++++++++++++++++ Source/doom.h | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/Source/doom.cpp b/Source/doom.cpp index 943a03b23..8d1a0cab6 100644 --- a/Source/doom.cpp +++ b/Source/doom.cpp @@ -8,6 +8,26 @@ void *pDoomCel; int doomflag; // weak int DoomQuestState; // idb +/* +void __cdecl doom_reset_state() +{ + if ( DoomQuestState <= 0 ) { + DoomQuestState = 0; + } +} + +void __cdecl doom_play_movie() +{ + if ( DoomQuestState < 36001 ) { + DoomQuestState++; + if ( DoomQuestState == 36001 ) { + PlayInGameMovie("gendata\\doom.smk"); + DoomQuestState++; + } + } +} +*/ + int __cdecl doom_get_frame_from_time() { if ( DoomQuestState == 36001 ) { diff --git a/Source/doom.h b/Source/doom.h index 400f7c4e5..fe13d5289 100644 --- a/Source/doom.h +++ b/Source/doom.h @@ -8,6 +8,10 @@ extern void *pDoomCel; extern int doomflag; // weak extern int DoomQuestState; // idb +/* +void __cdecl doom_reset_state(); +void __cdecl doom_play_movie(); +*/ int __cdecl doom_get_frame_from_time(); void __cdecl doom_alloc_cel(); void __cdecl doom_cleanup();