From 8db9019df22bf792ea02096dec8c3d862fa00155 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 22 May 2017 18:47:13 -0500 Subject: [PATCH] XCROLL IS MYSTERIOUSLY NOT WORKING --- src/lib/16_mm.c | 2 +- src/lib/16_tdef.h | 3 +-- src/lib/doslib | 2 +- src/xcroll.c | 10 ++++++---- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 5061b4d5..bb392aab 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -826,7 +826,7 @@ void MM_Startup (global_game_variables_t *gvar) //has to be 16 if(sizeof(mmblocktype)!=16) - return; + Quit (gvar, "mmblocktype size is not 16"); gvar->mm.mmstarted = true; gvar->mm.bombonerror = true; diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index 88ab4cde..f4b9d094 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -501,9 +501,8 @@ typedef struct typedef struct mmblockstruct { - //word start,length; + //word start,length, word blob; //for data larger than 64k word start; dword length; - //word blob; //for data larger than 64k unsigned attributes; memptr *useptr; // pointer to the segment start struct mmblockstruct far *next; diff --git a/src/lib/doslib b/src/lib/doslib index 03c79f45..a9daa1c7 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 03c79f455524b97368caf6c27773991a4d217cb2 +Subproject commit a9daa1c704f3963f3e673f20234ca78117e2d999 diff --git a/src/xcroll.c b/src/xcroll.c index 52d9b5b9..b9e92843 100755 --- a/src/xcroll.c +++ b/src/xcroll.c @@ -69,6 +69,9 @@ void main(int argc, char *argv[]) ggvv=&gvar; + // input! + IN_Default(0, &gvar.player[0],ctrl_Keyboard1, &gvar); + if (argc >= 2) { if(argv[1]){ strcpy(bakapee, argv[1]); if(argv[2]) strcpy(bakapeep, argv[2]); } @@ -91,10 +94,9 @@ void main(int argc, char *argv[]) //initMap(&map); #endif // data - VRS_LoadVRS(bakapee, &gvar.player[0].enti, &gvar); - - // input! - IN_Default(0, &gvar.player[0],ctrl_Keyboard1, &gvar); + printf("loading vrs "); + VRS_LoadVRS(bakapee, &gvar.player[0].enti, &gvar); printf("ok\n"); + IN_StartAck (&gvar); while (!IN_CheckAck (&gvar)){} // save the palette #ifdef FADE -- 2.39.5