Browse Source

Add two doom function from debug

pull/4/head
Anders Jenbo 8 years ago committed by Dennis Duda
parent
commit
4e008adcbd
  1. 20
      Source/doom.cpp
  2. 4
      Source/doom.h

20
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 ) {

4
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();

Loading…
Cancel
Save