Skip to content

Commit 24f4a70

Browse files
committed
refactoring
1 parent fe3322f commit 24f4a70

File tree

9 files changed

+6
-278
lines changed

9 files changed

+6
-278
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ add_executable(hrotte
5858
rott/cin_evnt.c
5959
rott/cin_glob.c
6060
rott/cin_main.c
61-
rott/cin_util.c
6261
rott/dosutil.c
6362
rott/dukemusc.c
6463
rott/engine.c

rott/_rt_swft.h

Lines changed: 0 additions & 109 deletions
This file was deleted.

rott/cin_efct.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1919
*/
2020

2121
#include "cin_glob.h"
22-
#include "cin_util.h"
2322
#include "cin_def.h"
2423
#include "cin_main.h"
2524
#include "f_scale.h"
@@ -271,7 +270,7 @@ void DrawFlic( flicevent * flic ) {
271270

272271
curpal = SafeMalloc( 768 );
273272

274-
CinematicGetPalette( curpal );
273+
VL_GetPalette( curpal );
275274

276275
DrawFadeout();
277276

@@ -297,7 +296,7 @@ void DrawFlic( flicevent * flic ) {
297296
VL_SetVGAPlaneMode ();
298297
#endif
299298

300-
CinematicSetPalette( curpal );
299+
VL_SetPalette( curpal );
301300

302301
SafeFree( curpal );
303302
GetCinematicTics();
@@ -573,7 +572,7 @@ void DrawPalette( paletteevent * event ) {
573572

574573
pal = W_CacheLumpName( event->name, PU_CACHE, CvtNull, 1 );
575574
XFlipPage();
576-
CinematicSetPalette( pal );
575+
VL_SetPalette( pal );
577576
}
578577

579578
/*
@@ -603,13 +602,13 @@ void DrawFadeout( void ) {
603602
byte newpal[768];
604603
int i, j;
605604

606-
CinematicGetPalette( &origpal[0] );
605+
VL_GetPalette( &origpal[0] );
607606
for ( j = 0; j < FADEOUTTIME; j++ ) {
608607
for ( i = 0; i < 768; i++ ) {
609-
newpal[i] = (origpal[i] * (FADEOUTTIME - j - 1)) / FADEOUTTIME;
608+
newpal[i] = ( origpal[i] * ( FADEOUTTIME - j - 1 )) / FADEOUTTIME;
610609
}
611610
WaitVBL();
612-
CinematicSetPalette( &newpal[0] );
611+
VL_SetPalette( &newpal[0] );
613612
CinematicDelay();
614613
}
615614
VL_ClearVideo( 0 );

rott/cin_util.c

Lines changed: 0 additions & 65 deletions
This file was deleted.

rott/cin_util.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

rott/rt_in.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -905,29 +905,6 @@ void IN_Startup( void ) {
905905
spaceballenabled = true;
906906
}
907907

908-
if (( checkcyberman || checkassassin ) && ( swiftstatus = SWIFT_Initialize())) {
909-
int dynamic;
910-
911-
if ( checkcyberman ) {
912-
CybermanPresent = swiftstatus;
913-
cybermanenabled = true;
914-
} else if ( checkassassin ) {
915-
AssassinPresent = checkassassin & swiftstatus;
916-
assassinenabled = true;
917-
}
918-
919-
dynamic = SWIFT_GetDynamicDeviceData();
920-
921-
SWIFT_TactileFeedback( 40, 20, 20 );
922-
923-
if ( SWIFT_GetDynamicDeviceData() == 2 )
924-
Error( "SWIFT ERROR : External Power too high!\n" );
925-
926-
SWIFT_TactileFeedback( 100, 10, 10 );
927-
if ( !quiet )
928-
printf( "IN_Startup: Swift Device Present\n" );
929-
}
930-
931908
IN_Started = true;
932909
}
933910

@@ -969,9 +946,6 @@ void IN_Shutdown( void ) {
969946
for ( i = 0; i < MaxJoys; i++ )
970947
INL_ShutJoy( i );
971948

972-
if ( CybermanPresent || AssassinPresent )
973-
SWIFT_Terminate();
974-
975949
CloseSpaceBall();
976950

977951
IN_Started = false;

rott/rt_swift.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2525
//
2626
//****************************************************************************
2727

28-
29-
#include <stddef.h>
3028
#include <stdio.h>
31-
#include <stdlib.h>
32-
#include <string.h>
33-
34-
#ifdef DOS
35-
#include <dos.h>
36-
#endif
37-
3829
#include "rt_def.h"
3930
#include "rt_swift.h"
40-
#include "_rt_swft.h"
41-
//MED
42-
#include "memcheck.h"
4331

4432
#ifdef DOS
4533

@@ -397,16 +385,6 @@ void far *allocDOS (unsigned nbytes, short *pseg, short *psel)
397385

398386
/* This isn't of much use in Linux. */
399387

400-
int SWIFT_Initialize( void ) {
401-
STUB_FUNCTION;
402-
403-
return 0;
404-
}
405-
406-
void SWIFT_Terminate( void ) {
407-
STUB_FUNCTION;
408-
}
409-
410388
void SWIFT_Get3DStatus( SWIFT_3DStatus far * pstat ) {
411389
STUB_FUNCTION;
412390
}

rott/rt_swift.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3434
//
3535
//***************************************************************************
3636

37-
int SWIFT_Initialize( void );
38-
//
39-
// Test for presence of SWIFT extensions and SWIFT device
40-
// Returns 1 (TRUE) if SWIFT features are available, 0 otherwise.
41-
// Remember to call SWIFT_Terminate() if SWIFT_Initialize succeeds!
42-
//
43-
44-
void SWIFT_Terminate( void );
45-
//
46-
// Free resources required for SWIFT support. If SWIFT_Initialize has
47-
// not been called, or returned FALSE, this function does nothing.
48-
// SWIFT_Terminate should always be called at some time after a call to
49-
// SWIFT_Initialize has returned TRUE.
50-
//
51-
5237
int SWIFT_GetAttachedDevice( void );
5338
//
5439
// Returns the device-type code for the attached SWIFT device, if any.

rott/winrott.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,7 @@ void SetRottScreenRes( int Width, int Height ) {
6060
dTopYZANGLELIMIT = ( 90 * FINEANGLES / 360 );
6161
}
6262

63-
//dYZANGLELIMIT = (12*FINEANGLES/360);
64-
//#define YZANGLELIMIT (12*FINEANGLES/360)//bna--(30*FINEANGLES/360)
65-
66-
//#define TopYZANGLELIMIT (44*FINEANGLES/360)//bna added
67-
6863
// GetCurrentDirectory(sizeof(ApogeePath),ApogeePath);// curent directory name
69-
7064
}
7165

7266
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)