Compare commits

...
Sign in to create a new pull request.

50 commits

Author SHA1 Message Date
Fedora Release Engineering
4a1dd0120a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 12:04:43 +00:00
Fedora Release Engineering
ec3f4b7c23 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 22:38:31 +00:00
Miroslav Suchý
a2b4d37d43 convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-26 02:41:43 +02:00
Fedora Release Engineering
b1f72f53d6 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 18:45:40 +00:00
Fedora Release Engineering
f636c7dcd6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 15:43:39 +00:00
Fedora Release Engineering
63875831f0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 11:54:30 +00:00
Fedora Release Engineering
0536ab1e55 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 17:01:38 +00:00
Fedora Release Engineering
977df4b91f Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 19:54:10 +00:00
Fedora Release Engineering
1a0ca12715 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 00:58:25 +00:00
Fedora Release Engineering
2a45147268 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 17:58:38 +00:00
Fedora Release Engineering
08618b1663 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 11:32:55 +00:00
Fedora Release Engineering
2bcad95b80 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 15:24:46 +00:00
Tom Stellard
3137bfd2d2 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 20:52:23 +00:00
Fedora Release Engineering
4dcb62ca2a - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 07:54:30 +00:00
Fedora Release Engineering
0aa2a579b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 05:52:43 +00:00
Fedora Release Engineering
67aaaa8491 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 17:48:58 +00:00
Fedora Release Engineering
237ddaeb6a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 18:43:27 +00:00
Fedora Release Engineering
132d4182b5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 11:32:37 +00:00
Igor Gnatenko
bfeddb643c Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:45 +01:00
Igor Gnatenko
aedd9268da
Add missing BuildRequires on gcc
make: cc: Command not found

References: https://bugzilla.redhat.com/show_bug.cgi?id=1606129
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-24 16:02:05 +02:00
Fedora Release Engineering
891b6267ec - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:41:55 +00:00
Fedora Release Engineering
e27cdceea8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 13:16:05 +00:00
Igor Gnatenko
7944249e06 Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-18 22:12:46 +01:00
Fedora Release Engineering
105751ead3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:46:24 +00:00
Fedora Release Engineering
8c7f375be1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 13:15:01 +00:00
Fedora Release Engineering
22ce668305 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 11:49:20 +00:00
Fedora Release Engineering
376f4db6c3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 22:16:26 +00:00
Hans de Goede
eb3556ff81 Add support for game-data-packager provided assets (rhbz#1295511)
- Add appdata files
- Modernize spec a bit
2016-01-16 11:33:30 +01:00
Dennis Gilmore
63f784b8b7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 22:30:21 +00:00
Peter Robinson
0ddd4afc57 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 00:13:38 +00:00
Hans de Goede
3c8532bb51 Drop no longer used patches 2014-06-15 14:18:59 +02:00
Hans de Goede
fd8d684a55 New upstream release 1.1.2
- Fix FTBFS (rhbz#1037308)
2014-06-15 14:17:43 +02:00
Dennis Gilmore
6f87e0310e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 21:49:31 -05:00
Dennis Gilmore
72c283d6f3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 07:53:52 -05:00
Toshio Kuratomi
b76e2dc53f Correct typo 2013-02-25 17:49:06 -08:00
Toshio Kuratomi
e5a408f944 Remove --vendor from desktop files for F19+ https://fedorahosted.org/fesco/ticket/1077 2013-02-25 17:48:30 -08:00
Dennis Gilmore
3f7d997bac - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 15:49:38 -06:00
Dennis Gilmore
38c2ccbbf6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 11:53:23 -05:00
Dennis Gilmore
30522dcd72 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 20:54:38 -06:00
Dennis Gilmore
1fa215bacf - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-09 02:35:01 -06:00
Fedora Release Engineering
56696dda51 dist-git conversion 2010-07-29 11:34:15 +00:00
Bill Nottingham
c025250748 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:13:20 +00:00
Jesse Keating
57f40d68a5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 03:08:25 +00:00
Jesse Keating
7b4e0967c4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-25 20:20:07 +00:00
Hans de Goede
1eec90c85d - New upstream release 1.1 (incorperating all our patches!) 2008-08-04 22:14:12 +00:00
Hans de Goede
7869f1d79f - New upstream release 1.1 (incorperating all our patches!) 2008-08-04 22:13:09 +00:00
Hans de Goede
b46f27aae9 - Many fixes (and a manpage) ported over from debian 2008-04-10 14:40:05 +00:00
Jesse Keating
56852f87f8 - Autorebuild for GCC 4.3 2008-02-19 09:35:32 +00:00
Hans de Goede
9260152608 - Update License tag for new Licensing Guidelines compliance
- Fix 2 calls of memset with the 2nd and 3th argument swaped, reported by
    Dave Jones
2007-08-09 06:08:44 +00:00
Hans de Goede
dea7f4a945 - Add missing autodownloader Requires to rott-shareware 2007-05-21 22:14:51 +00:00
19 changed files with 241 additions and 40305 deletions

View file

@ -1 +0,0 @@
rott-1.0.tar.gz

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
rott-1.1.tar.gz
/rott-1.1.2.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: rott
# $Id$
NAME := rott
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,911 +0,0 @@
diff -ur rott-1.0.orig/rott/audiolib/dpmi.h rott-1.0/rott/audiolib/dpmi.h
--- rott-1.0.orig/rott/audiolib/dpmi.h 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/audiolib/dpmi.h 2007-05-06 22:03:17.000000000 +0200
@@ -62,8 +62,8 @@
unsigned long DPMI_GetRealModeVector( int num );
void DPMI_SetRealModeVector( int num, unsigned long vector );
int DPMI_CallRealModeFunction( dpmi_regs *callregs );
-int DPMI_GetDOSMemory( void **ptr, int *descriptor, unsigned length );
-int DPMI_FreeDOSMemory( int descriptor );
+int DPMI_GetDOSMemory( void **ptr, long *descriptor, unsigned length );
+int DPMI_FreeDOSMemory( long descriptor );
int DPMI_LockMemory( void *address, unsigned length );
int DPMI_LockMemoryRegion( void *start, void *end );
int DPMI_UnlockMemory( void *address, unsigned length );
diff -ur rott-1.0.orig/rott/audiolib/multivoc.c rott-1.0/rott/audiolib/multivoc.c
--- rott-1.0.orig/rott/audiolib/multivoc.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/audiolib/multivoc.c 2007-05-06 22:03:17.000000000 +0200
@@ -107,7 +107,7 @@
static int MV_TotalMemory;
-static int MV_BufferDescriptor;
+static long MV_BufferDescriptor;
static int MV_BufferEmpty[ NumberOfBuffers ];
char *MV_MixBuffer[ NumberOfBuffers + 1 ];
diff -ur rott-1.0.orig/rott/audiolib/nodpmi.c rott-1.0/rott/audiolib/nodpmi.c
--- rott-1.0.orig/rott/audiolib/nodpmi.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/audiolib/nodpmi.c 2007-05-06 22:03:17.000000000 +0200
@@ -160,18 +160,18 @@
return( status );
}
-int DPMI_GetDOSMemory( void **ptr, int *descriptor, unsigned length )
+int DPMI_GetDOSMemory( void **ptr, long *descriptor, unsigned length )
{
/* Lovely... */
*ptr = (void *)malloc(length);
- *descriptor = (int) *ptr;
+ *descriptor = (long) *ptr;
return (descriptor == 0) ? DPMI_Error : DPMI_Ok;
}
-int DPMI_FreeDOSMemory( int descriptor )
+int DPMI_FreeDOSMemory( long descriptor )
{
free((void *)descriptor);
diff -ur rott-1.0.orig/rott/modexlib.c rott-1.0/rott/modexlib.c
--- rott-1.0.orig/rott/modexlib.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/modexlib.c 2007-05-06 22:03:17.000000000 +0200
@@ -45,12 +45,12 @@
int linewidth;
int ylookup[MAXSCREENHEIGHT];
-int page1start;
-int page2start;
-int page3start;
+byte *page1start;
+byte *page2start;
+byte *page3start;
int screensize;
-unsigned bufferofs;
-unsigned displayofs;
+byte *bufferofs;
+byte *displayofs;
boolean graphicsmode=false;
#ifdef DOS
@@ -248,7 +248,7 @@
=
=======================
*/
-void VL_CopyBufferToAll ( unsigned buffer )
+void VL_CopyBufferToAll ( byte *buffer )
{
int plane;
@@ -506,9 +506,9 @@
screensize=MAXSCREENHEIGHT*MAXSCREENWIDTH;
- page1start=(int)sdl_surface->pixels;
- page2start=(int)sdl_surface->pixels;
- page3start=(int)sdl_surface->pixels;
+ page1start=sdl_surface->pixels;
+ page2start=sdl_surface->pixels;
+ page3start=sdl_surface->pixels;
displayofs = page1start;
bufferofs = page2start;
XFlipPage ();
@@ -570,7 +570,7 @@
=
=======================
*/
-void VL_CopyBufferToAll ( unsigned buffer )
+void VL_CopyBufferToAll ( byte *buffer )
{
#ifdef DOS
int plane;
@@ -611,7 +611,7 @@
=================
*/
-void VL_ClearBuffer (unsigned buf, byte color)
+void VL_ClearBuffer (byte *buf, byte color)
{
#ifdef DOS
VGAMAPMASK(15);
diff -ur rott-1.0.orig/rott/modexlib.h rott-1.0/rott/modexlib.h
--- rott-1.0.orig/rott/modexlib.h 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/modexlib.h 2007-05-06 22:03:17.000000000 +0200
@@ -105,23 +105,23 @@
extern int ylookup[MAXSCREENHEIGHT]; // Table of row offsets
extern int linewidth;
-extern int page1start;
-extern int page2start;
-extern int page3start;
+extern byte *page1start;
+extern byte *page2start;
+extern byte *page3start;
extern int screensize;
-extern unsigned bufferofs;
-extern unsigned displayofs;
+extern byte *bufferofs;
+extern byte *displayofs;
extern boolean graphicsmode;
void GraphicsMode ( void );
void SetTextMode ( void );
void VL_SetVGAPlaneMode ( void );
-void VL_ClearBuffer (unsigned buf, byte color);
+void VL_ClearBuffer (byte *buf, byte color);
void VL_ClearVideo (byte color);
void VL_DePlaneVGA (void);
void VL_CopyDisplayToHidden ( void );
-void VL_CopyBufferToAll ( unsigned buffer );
+void VL_CopyBufferToAll ( byte *buffer );
void VL_CopyPlanarPage ( byte * src, byte * dest );
void VL_CopyPlanarPageToMemory ( byte * src, byte * dest );
void XFlipPage ( void );
diff -ur rott-1.0.orig/rott/rt_actor.c rott-1.0/rott/rt_actor.c
--- rott-1.0.orig/rott/rt_actor.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_actor.c 2007-05-06 22:03:17.000000000 +0200
@@ -88,7 +88,7 @@
byte deathshapeoffset[8] = {0,7,7,8,8,9,8,7};
-unsigned MAXFUNCTION,MINFUNCTION,MAXSTATE,MINSTATE;
+unsigned long MAXFUNCTION,MINFUNCTION,MAXSTATE,MINSTATE;
objtype *PLAYER0MISSILE;
objtype *SCREENEYE;
@@ -992,16 +992,16 @@
void FindAddresses(void)
{
int i;
- unsigned tstate,tfunct;
+ unsigned long tstate,tfunct;
- MINFUNCTION = 0xffffffff;
+ MINFUNCTION = -1l;
MAXFUNCTION = 0x00000000;
- MINSTATE = 0xffffffff;
+ MINSTATE = -1l;
MAXSTATE = 0x00000000;
for(i=0;i<MAXSTATES;i++)
{
- tstate = (unsigned)(statetable[i]);
+ tstate = (unsigned long)(statetable[i]);
if (tstate < MINSTATE)
MINSTATE = tstate;
@@ -1009,7 +1009,7 @@
MAXSTATE = tstate;
if (statetable[i]!=NULL)
{
- tfunct = (unsigned)(statetable[i]->think);
+ tfunct = (unsigned long)(statetable[i]->think);
if (tfunct < MINFUNCTION)
MINFUNCTION = tfunct;
@@ -1021,10 +1021,10 @@
void CheckBounds(objtype*ob)
{
- unsigned tstate,tfunct;
+ unsigned long tstate,tfunct;
- tstate = (unsigned)(ob->state);
- tfunct = (unsigned)(ob->state->think);
+ tstate = (unsigned long)(ob->state);
+ tfunct = (unsigned long)(ob->state->think);
if ((tfunct < MINFUNCTION) || (tfunct > MAXFUNCTION) ||
(tstate < MINSTATE) || (tstate > MAXSTATE))
@@ -10077,7 +10077,7 @@
if (ob->hitpoints <= 0)
{objtype*column = (objtype*)(ob->whatever);
- EnableObject((int)column);
+ EnableObject((long)column);
ob->whatever = NULL;
KillActor(ob);
@@ -10442,7 +10442,7 @@
{
objtype*column = (objtype*)(ob->whatever);
- EnableObject((int)column);
+ EnableObject((long)column);
ob->whatever = NULL;
KillActor(ob);
@@ -10663,7 +10663,7 @@
{touchplatetype *tplate;
for(tplate=touchplate[tempstat->linked_to];tplate;tplate = tplate->nextaction)
- if (tplate->whichobj == (int)(tempstat))
+ if (tplate->whichobj == (long)(tempstat))
RemoveTouchplateAction(tplate,tempstat->linked_to);
}
@@ -10879,7 +10879,7 @@
(tempstat->itemnumber == stat_tntcrate)
)
{
- tempstat->linked_to = (int)(LASTSTAT);
+ tempstat->linked_to = (long)(LASTSTAT);
tempstat->flags |= FL_RESPAWN;
}
@@ -10900,7 +10900,7 @@
-void EnableObject(int object)
+void EnableObject(long object)
{
objtype* ob;
int i,gasicon;
@@ -10951,7 +10951,7 @@
}
}
-void DisableObject(int object)
+void DisableObject(long object)
{objtype*ob;
ob = (objtype*)object;
diff -ur rott-1.0.orig/rott/rt_actor.h rott-1.0/rott/rt_actor.h
--- rott-1.0.orig/rott/rt_actor.h 2007-05-06 22:30:12.000000000 +0200
+++ rott-1.0/rott/rt_actor.h 2007-05-06 22:03:17.000000000 +0200
@@ -358,8 +358,8 @@
void A_Drain(objtype*ob);
void T_Explosion(objtype*ob);
void T_MoveColumn(objtype*);
-void EnableObject(int object);
-void DisableObject(int);
+void EnableObject(long object);
+void DisableObject(long object);
void T_Collide(objtype*);
void Collision(objtype*ob,objtype *attacker,int hitmomentumx,int hitmomentumy);
diff -ur rott-1.0.orig/rott/rt_def.h rott-1.0/rott/rt_def.h
--- rott-1.0.orig/rott/rt_def.h 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_def.h 2007-05-06 22:03:17.000000000 +0200
@@ -300,7 +300,7 @@
typedef unsigned char byte;
typedef unsigned short int word;
typedef unsigned long longword;
-typedef long fixed;
+typedef int fixed;
//////////////////////////////////////////////////////////////////////////
diff -ur rott-1.0.orig/rott/rt_door.c rott-1.0/rott/rt_door.c
--- rott-1.0.orig/rott/rt_door.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_door.c 2007-05-06 22:03:17.000000000 +0200
@@ -94,7 +94,7 @@
// Local Variables
-static void (*touchactions[NUMTOUCHPLATEACTIONS])(int) =
+static void (*touchactions[NUMTOUCHPLATEACTIONS])(long) =
{ActivatePushWall,
ActivateMoveWall,
LinkedOpenDoor,
@@ -315,7 +315,7 @@
}
-int GetIndexForAction(void (*action)(int))
+int GetIndexForAction(void (*action)(long))
{int i;
for(i=0;i<NUMTOUCHPLATEACTIONS;i++)
@@ -486,10 +486,10 @@
temp->complete = dummy.complete;
if (dummy.whichobj & FL_TACT)
- temp->whichobj = (int)(objlist[dummy.whichobj & ~FL_TACT]);
+ temp->whichobj = (long)(objlist[dummy.whichobj & ~FL_TACT]);
else if (dummy.whichobj & FL_TSTAT)
- temp->whichobj = (int)(GetStatForIndex(dummy.whichobj & ~FL_TSTAT));
+ temp->whichobj = (long)(GetStatForIndex(dummy.whichobj & ~FL_TSTAT));
else
temp->whichobj = dummy.whichobj;
if (dummy.actionindex != -1)
@@ -613,7 +613,7 @@
-void Link_To_Touchplate(word touchlocx, word touchlocy, void (*maction)(int), void (*swapaction)(int), int wobj, int delaytime)
+void Link_To_Touchplate(word touchlocx, word touchlocy, void (*maction)(long), void (*swapaction)(long), long wobj, int delaytime)
{touchplatetype *temp;
int index;
@@ -640,7 +640,7 @@
-void ClockLink (void (*saction)(int), void (*eaction)(int), int wobj,int whichclock)
+void ClockLink (void (*saction)(long), void (*eaction)(long), long wobj,int whichclock)
{touchplatetype*temp;
@@ -731,7 +731,7 @@
touchplatetype *temp;
int i,touchcomplete,j;
int playeron;
- void (*tempact)(int);
+ void (*tempact)(long);
boolean wallmessage,doormessage,columnmessage;
for(i=0;i<lasttouch;i++)
@@ -1789,7 +1789,7 @@
=====================
*/
-void LinkedOpenDoor (int door)
+void LinkedOpenDoor (long door)
{
UtilizeDoor(door,OpenDoor);
}
@@ -1802,7 +1802,7 @@
=====================
*/
-void LinkedCloseDoor (int door)
+void LinkedCloseDoor (long door)
{
if (DoorReadyToClose(door)==true)
UtilizeDoor(door,CloseDoor);
@@ -3477,7 +3477,7 @@
=====================
*/
-void ActivatePushWall (int pwall)
+void ActivatePushWall (long pwall)
{
pwallobj_t * pw;
@@ -3508,7 +3508,7 @@
=====================
*/
-void ActivateMoveWall (int pwall)
+void ActivateMoveWall (long pwall)
{
pwallobj_t * pw;
diff -ur rott-1.0.orig/rott/rt_door.h rott-1.0/rott/rt_door.h
--- rott-1.0.orig/rott/rt_door.h 2002-12-20 21:15:28.000000000 +0100
+++ rott-1.0/rott/rt_door.h 2007-05-06 22:03:17.000000000 +0200
@@ -124,11 +124,11 @@
} pwallobj_t;
typedef struct tplate
-{ void (*action)(int);
- void (*swapaction)(int);
+{ void (*action)(long);
+ void (*swapaction)(long);
struct tplate * nextaction;
struct tplate * prevaction;
- int whichobj;
+ long whichobj;
byte tictime;
byte ticcount;
byte triggered;
@@ -213,9 +213,9 @@
int PlatformHeight(int,int);
-void Link_To_Touchplate(word, word, void (*)(int), void (*)(int),int, int);
+void Link_To_Touchplate(word, word, void (*)(long), void (*)(long), long, int);
void TriggerStuff(void);
-void ClockLink(void (*)(int),void(*)(int),int,int);
+void ClockLink(void (*)(long),void(*)(long),long,int);
void RecursiveConnect(int);
void ConnectAreas(void);
void InitAreas(void);
@@ -234,8 +234,8 @@
void WallPushing (int pwall);
void PushWall (int pwall, int dir);
void OperatePushWall (int pwall, int dir, boolean localplayer );
-void ActivatePushWall (int pwall);
-void ActivateMoveWall (int pwall);
+void ActivatePushWall (long pwall);
+void ActivateMoveWall (long pwall);
int UpdateMaskedWall (int num);
void FixDoorAreaNumbers ( void );
@@ -262,8 +262,8 @@
void LoadElevators(byte * buffer,int size);
void MakeWideDoorVisible ( int doornum );
-void LinkedCloseDoor (int door);
-void LinkedOpenDoor (int door);
+void LinkedCloseDoor (long door);
+void LinkedOpenDoor (long door);
int IsWall (int tilex, int tiley);
int IsDoor (int tilex, int tiley);
int IsMaskedWall (int tilex, int tiley);
diff -ur rott-1.0.orig/rott/rt_draw.c rott-1.0/rott/rt_draw.c
--- rott-1.0.orig/rott/rt_draw.c 2003-01-01 10:24:25.000000000 +0100
+++ rott-1.0/rott/rt_draw.c 2007-05-06 22:03:17.000000000 +0200
@@ -100,7 +100,7 @@
//
short tantable[FINEANGLES];
-long sintable[FINEANGLES+FINEANGLEQUAD+1],
+int sintable[FINEANGLES+FINEANGLEQUAD+1],
*costable = sintable+(FINEANGLES/4);
//
@@ -200,7 +200,7 @@
{
byte * table;
byte * ptr;
- long length;
+ int length;
int i;
//
@@ -244,7 +244,7 @@
//
// get sin/cos table
//
- memcpy(&sintable[0],ptr,length*sizeof(long));
+ memcpy(&sintable[0],ptr,length*sizeof(int));
SwapIntelLongArray(&sintable[0], length);
ptr+=(length)*sizeof(int);
diff -ur rott-1.0.orig/rott/rt_game.c rott-1.0/rott/rt_game.c
--- rott-1.0.orig/rott/rt_game.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_game.c 2007-05-06 22:13:20.000000000 +0200
@@ -998,7 +998,7 @@
void DrawGameString (int x, int y, const char * str, boolean bufferofsonly)
{
- unsigned tempbuf;
+ byte *tempbuf;
px=x;
py=y;
@@ -1543,8 +1543,8 @@
void DrawMPPic (int xpos, int ypos, int width, int height, int heightmod, byte *src, boolean bufferofsonly)
{
- byte *olddest;
- byte *dest;
+ int olddest;
+ int dest;
int x;
int y;
int planes;
@@ -1554,9 +1554,9 @@
mask = 1 << (xpos&3);
#ifdef DOS
- olddest = (byte *)(ylookup[ypos] + (xpos>>2));
+ olddest = ylookup[ypos] + (xpos>>2);
#else
- olddest = (byte *)(ylookup[ypos] + xpos);
+ olddest = ylookup[ypos] + xpos;
#endif
for (planes = 0; planes < 4; planes++)
@@ -1637,8 +1637,8 @@
void DrawColoredMPPic (int xpos, int ypos, int width, int height, int heightmod, byte *src, boolean bufferofsonly, int color)
{
- byte *olddest;
- byte *dest;
+ int olddest;
+ int dest;
int x;
int y;
int planes;
@@ -1651,9 +1651,9 @@
mask = 1 << (xpos&3);
#ifdef DOS
- olddest = (byte *)(ylookup[ypos] + (xpos>>2));
+ olddest = ylookup[ypos] + (xpos>>2);
#else
- olddest = (byte *)(ylookup[ypos] + xpos);
+ olddest = ylookup[ypos] + xpos;
#endif
for (planes = 0; planes < 4; planes++)
@@ -1822,8 +1822,8 @@
void DrawPPic (int xpos, int ypos, int width, int height, byte *src, int num, boolean up, boolean bufferofsonly)
{
- byte *olddest;
- byte *dest;
+ int olddest;
+ int dest;
int x;
int y;
int planes;
@@ -1847,9 +1847,9 @@
mask = 1;
#ifdef DOS
- olddest = (byte *)(ylookup[ypos] + (xpos>>2));
+ olddest = ylookup[ypos] + (xpos>>2);
#else
- olddest = (byte *)(ylookup[ypos] + xpos);
+ olddest = ylookup[ypos] + xpos;
#endif
for (planes = 0; planes < 4; planes++)
@@ -2254,7 +2254,7 @@
void DrawPause (void)
{
pic_t *p;
- int bufftemp = bufferofs;
+ byte *bufftemp = bufferofs;
bufferofs -= screenofs;
@@ -2610,15 +2610,16 @@
void GM_MemToScreen (byte *source, int width, int height, int x, int y)
{
- byte *dest, *dest1, *dest2, *dest3, mask;
+ int dest;
+ byte *dest1, *dest2, *dest3, mask;
byte *screen1, *screen2, *screen3;
int plane;
int w;
#ifdef DOS
- dest = (byte *)(ylookup[y]+(x>>2));
+ dest = ylookup[y]+(x>>2);
#else
- dest = (byte *)(ylookup[y]+x);
+ dest = ylookup[y]+x;
#endif
mask = 1 << (x&3);
@@ -4450,7 +4451,7 @@
{
if ((SaveTime+1) < GetTicCount())
{
- int temp = bufferofs;
+ byte *temp = bufferofs;
bufferofs = displayofs;
SaveTime = GetTicCount();
diff -ur rott-1.0.orig/rott/rt_main.c rott-1.0/rott/rt_main.c
--- rott-1.0.orig/rott/rt_main.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_main.c 2007-05-06 22:13:55.000000000 +0200
@@ -962,7 +962,7 @@
while ((!LastScan) && (!IN_GetMouseButtons()))
{
int i;
- unsigned tempbuf;
+ byte *tempbuf;
MenuFadeOut();
ClearGraphicsScreen();
SetPalette(&dimpal[0]);
diff -ur rott-1.0.orig/rott/rt_stat.c rott-1.0/rott/rt_stat.c
--- rott-1.0.orig/rott/rt_stat.c 2002-12-24 05:34:15.000000000 +0100
+++ rott-1.0/rott/rt_stat.c 2007-05-06 22:03:17.000000000 +0200
@@ -397,7 +397,7 @@
}
-void ActivateLight(int light)
+void ActivateLight(long light)
{statobj_t*tstat;
tstat = (statobj_t*)light;
@@ -409,7 +409,7 @@
}
-void DeactivateLight(int light)
+void DeactivateLight(long light)
{statobj_t*tstat;
tstat = (statobj_t*)light;
diff -ur rott-1.0.orig/rott/rt_stat.h rott-1.0/rott/rt_stat.h
--- rott-1.0.orig/rott/rt_stat.h 2002-12-20 21:15:28.000000000 +0100
+++ rott-1.0/rott/rt_stat.h 2007-05-06 22:03:17.000000000 +0200
@@ -151,7 +151,7 @@
short int whichstat;
short int areanumber;
- int linked_to;
+ long linked_to;
struct statstruct *statnext;
struct statstruct *statprev;
struct statstruct *nextactive;
@@ -167,8 +167,7 @@
int spawnz;
struct respstruct *next;
struct respstruct *prev;
- int linked_to;
-
+ long linked_to;
} respawn_t;
@@ -205,8 +204,8 @@
void Set_NewZ_to_MapValue(fixed*,int,const char*,int,int);
void RemoveFromFreeStaticList(statobj_t*);
void CheckCriticalStatics(void);
-void ActivateLight(int);
-void DeactivateLight(int);
+void ActivateLight(long);
+void DeactivateLight(long);
void TurnOnLight(int,int);
void TurnOffLight(int,int);
void MakeStatActive(statobj_t*);
diff -ur rott-1.0.orig/rott/rt_ted.c rott-1.0/rott/rt_ted.c
--- rott-1.0.orig/rott/rt_ted.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_ted.c 2007-05-06 22:14:56.000000000 +0200
@@ -1139,7 +1139,7 @@
int lastmem=0;
int lastcache=0;
int ticdelay;
- unsigned tempbuf;
+ byte *tempbuf;
#if defined(PLATFORM_MACOSX) || defined(__sparc__)
#warning "Precaching is disabled. Fix."
@@ -1329,7 +1329,7 @@
{
int filehandle;
char RTLSignature[ 4 ];
- unsigned long RTLVersion;
+ unsigned int RTLVersion;
filehandle = SafeOpenRead( filename );
@@ -1395,12 +1395,12 @@
SEEK_SET );
SafeRead( filehandle, &RTLMap, sizeof( RTLMap ) );
- SwapIntelLong((long *)&RTLMap.used);
- SwapIntelLong((long *)&RTLMap.CRC);
- SwapIntelLong((long *)&RTLMap.RLEWtag);
- SwapIntelLong((long *)&RTLMap.MapSpecials);
- SwapIntelLongArray((long *)&RTLMap.planestart, NUMPLANES);
- SwapIntelLongArray((long *)&RTLMap.planelength, NUMPLANES);
+ SwapIntelLong((int *)&RTLMap.used);
+ SwapIntelLong((int *)&RTLMap.CRC);
+ SwapIntelLong((int *)&RTLMap.RLEWtag);
+ SwapIntelLong((int *)&RTLMap.MapSpecials);
+ SwapIntelLongArray((int *)&RTLMap.planestart, NUMPLANES);
+ SwapIntelLongArray((int *)&RTLMap.planelength, NUMPLANES);
if ( !RTLMap.used )
{
@@ -3568,7 +3568,7 @@
void LinkActor (objtype *ob,int tilex,int tiley,
- void (*action)(int),void (*swapaction)(int)
+ void (*action)(long),void (*swapaction)(long)
)
{
word touchx,touchy;
@@ -3585,7 +3585,7 @@
if ((clockx == tilex) && (clocky == tiley))
{
clocklinked = 1;
- ClockLink(EnableObject,DisableObject,(int)ob,k);
+ ClockLink(EnableObject,DisableObject,(long)ob,k);
}
}
@@ -3612,9 +3612,9 @@
if (tswitch && (tswitch->flags & FL_ON))
- Link_To_Touchplate(touchx,touchy,swapaction,action,(int)ob,0);
+ Link_To_Touchplate(touchx,touchy,swapaction,action,(long)ob,0);
else
- Link_To_Touchplate(touchx,touchy,action,swapaction,(int)ob,0);
+ Link_To_Touchplate(touchx,touchy,action,swapaction,(long)ob,0);
if (ob->obclass == gasgrateobj)
{
ob->temp1 = touchx;
@@ -3645,7 +3645,7 @@
{
int i,j,linked;
word *map,tile;
- void (*action)(int),(*swapaction)(int);
+ void (*action)(long),(*swapaction)(long);
map = mapplanes[1];
@@ -4051,7 +4051,7 @@
if (!(tswitch->flags & FL_ON))
{sprites[i][j]->shapenum --;
if (touchindices[touchx][touchy])
- {Link_To_Touchplate(touchx,touchy,ActivateLight,DeactivateLight,(int)(sprites[i][j]),0);
+ {Link_To_Touchplate(touchx,touchy,ActivateLight,DeactivateLight,(long)(sprites[i][j]),0);
sprites[i][j]->linked_to = touchindices[touchx][touchy]-1;
}
else
@@ -4059,7 +4059,7 @@
}
else
{if (touchindices[touchx][touchy])
- {Link_To_Touchplate(touchx,touchy,DeactivateLight,ActivateLight,(int)(sprites[i][j]),0);
+ {Link_To_Touchplate(touchx,touchy,DeactivateLight,ActivateLight,(long)(sprites[i][j]),0);
sprites[i][j]->linked_to = touchindices[touchx][touchy]-1;
}
else
@@ -4069,7 +4069,7 @@
}
else
{if (touchindices[touchx][touchy])
- {Link_To_Touchplate(touchx,touchy,DeactivateLight,ActivateLight,(int)(sprites[i][j]),0);
+ {Link_To_Touchplate(touchx,touchy,DeactivateLight,ActivateLight,(long)(sprites[i][j]),0);
sprites[i][j]->linked_to = touchindices[touchx][touchy]-1;
}
else
diff -ur rott-1.0.orig/rott/rt_util.c rott-1.0/rott/rt_util.c
--- rott-1.0.orig/rott/rt_util.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/rt_util.c 2007-05-06 22:03:17.000000000 +0200
@@ -1171,7 +1171,7 @@
}
-long SwapLong (long l)
+int SwapLong (int l)
{
byte b1,b2,b3,b4;
@@ -1180,10 +1180,10 @@
b3 = (l>>16)&255;
b4 = (l>>24)&255;
- return ((long)b1<<24) + ((long)b2<<16) + ((long)b3<<8) + b4;
+ return ((int)b1<<24) + ((int)b2<<16) + ((int)b3<<8) + b4;
}
-long KeepLong (long l)
+int KeepLong (int l)
{
return l;
}
@@ -1194,7 +1194,7 @@
#undef SwapShort
#undef SwapLong
-void SwapIntelLong(long *l)
+void SwapIntelLong(int *l)
{
*l = IntelLong(*l);
}
@@ -1204,7 +1204,7 @@
*s = IntelShort(*s);
}
-void SwapIntelLongArray(long *l, int num)
+void SwapIntelLongArray(int *l, int num)
{
while (num--) {
SwapIntelLong(l);
diff -ur rott-1.0.orig/rott/rt_util.h rott-1.0/rott/rt_util.h
--- rott-1.0.orig/rott/rt_util.h 2002-12-25 09:00:13.000000000 +0100
+++ rott-1.0/rott/rt_util.h 2007-05-06 22:03:17.000000000 +0200
@@ -67,11 +67,11 @@
long ParseNum (char *str);
short MotoShort (short l);
short IntelShort (short l);
-long MotoLong (long l);
-long IntelLong (long l);
-void SwapIntelLong (long *l);
+int MotoLong (int l);
+int IntelLong (int l);
+void SwapIntelLong (int *l);
void SwapIntelShort(short *s);
-void SwapIntelLongArray (long *l, int num);
+void SwapIntelLongArray (int *l, int num);
void SwapIntelShortArray (short *s, int num);
int US_CheckParm (char *parm, char **strings);
byte BestColor (int r, int g, int b, byte *palette);
diff -ur rott-1.0.orig/rott/rt_vid.c rott-1.0/rott/rt_vid.c
--- rott-1.0.orig/rott/rt_vid.c 2002-12-24 08:29:52.000000000 +0100
+++ rott-1.0/rott/rt_vid.c 2007-05-06 22:15:21.000000000 +0200
@@ -968,7 +968,7 @@
void SwitchPalette (byte * newpal, int steps)
{
- int temp;
+ byte *temp;
VL_FadeOut(0,255,0,0,0,steps>>1);
diff -ur rott-1.0.orig/rott/rt_view.c rott-1.0/rott/rt_view.c
--- rott-1.0.orig/rott/rt_view.c 2003-01-01 10:24:39.000000000 +0100
+++ rott-1.0/rott/rt_view.c 2007-05-06 22:03:17.000000000 +0200
@@ -220,7 +220,7 @@
{
int i;
int frac;
- long intang;
+ int intang;
byte * table;
byte * ptr;
int length;
@@ -246,7 +246,7 @@
//
memcpy(&length,ptr,sizeof(int));
- SwapIntelLong((long *)&length);
+ SwapIntelLong(&length);
ptr+=sizeof(int);
pangle=SafeMalloc(length*sizeof(int));
memcpy(pangle,ptr,length*sizeof(int));
@@ -447,7 +447,7 @@
lump = W_GetNumForName("colormap");
length = W_LumpLength (lump) + 255;
colormap = SafeMalloc (length);
- colormap = (byte *)( ((int)colormap + 255)&~0xff);
+ colormap = (byte *)( ((long)colormap + 255)&~0xff);
W_ReadLump (lump,colormap);
// Fix fire colors in colormap
@@ -461,7 +461,7 @@
lump = W_GetNumForName("specmaps");
length = W_LumpLength (lump+1) + 255;
redmap = SafeMalloc (length);
- redmap = (byte *)( ((int)redmap + 255)&~0xff);
+ redmap = (byte *)( ((long)redmap + 255)&~0xff);
W_ReadLump (lump+1,redmap);
greenmap = redmap+(16*256);
@@ -474,7 +474,7 @@
{
length = W_LumpLength (lump+i) + 255;
playermaps[i] = SafeMalloc (length);
- playermaps[i] = (byte *)( ((int)playermaps[i] + 255)&~0xff);
+ playermaps[i] = (byte *)( ((long)playermaps[i] + 255)&~0xff);
W_ReadLump (lump+i,playermaps[i]);
}
}
diff -ur rott-1.0.orig/rott/watcom.c rott-1.0/rott/watcom.c
--- rott-1.0.orig/rott/watcom.c 2007-05-06 22:30:08.000000000 +0200
+++ rott-1.0/rott/watcom.c 2007-05-06 22:03:17.000000000 +0200
@@ -24,8 +24,8 @@
fixed FixedDiv2(fixed a, fixed b)
{
- __int64 x = (signed long)a;
- __int64 y = (signed long)b;
+ __int64 x = (signed int)a;
+ __int64 y = (signed int)b;
__int64 z = x * 65536 / y;
return (z) & 0xffffffff;
diff -ur rott-1.0.orig/rott/rt_main.h rott-1.0/rott/rt_main.h
--- rott-1.0.orig/rott/rt_main.h 2002-12-20 22:18:39.000000000 +0100
+++ rott-1.0/rott/rt_main.h 2007-05-10 11:49:11.000000000 +0200
@@ -76,8 +76,8 @@
// Variable for which version of the game can be played
version_type Product;
- long TimeCount;
- long frame;
+ int TimeCount;
+ int frame;
int secrettotal,treasuretotal,killtotal;
int secretcount,treasurecount,killcount;
int supertotal,healthtotal,missiletotal;
@@ -88,7 +88,7 @@
int difficulty;
int violence;
int mapon;
- long score;
+ int score;
int episode;
int battlemode;
int battleoption;

View file

@ -1,39 +0,0 @@
diff -ur rott-1.0/rott/Makefile trunk/rott/Makefile
--- rott-1.0/rott/Makefile 2007-05-05 20:44:31.000000000 +0200
+++ trunk/rott/Makefile 2007-05-05 15:47:26.000000000 +0200
@@ -47,7 +47,7 @@
CC = gcc
-CFLAGS = -g $(SDL_CFLAGS) -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused $(EXTRACFLAGS)
+CFLAGS = -g $(SDL_CFLAGS) -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused -Wno-pointer-sign $(EXTRACFLAGS)
LDLIBS = $(SDL_LDFLAGS) -lSDL -lSDL_mixer $(EXTRALDFLAGS) -Wl,-E
all: rott
diff -ur rott-1.0/rott/rt_actor.h trunk/rott/rt_actor.h
--- rott-1.0/rott/rt_actor.h 2007-05-05 20:44:31.000000000 +0200
+++ trunk/rott/rt_actor.h 2007-05-05 15:46:36.000000000 +0200
@@ -315,7 +315,7 @@
extern void *actorat[MAPSIZE][MAPSIZE];
extern int angletodir[ANGLES];
extern _2Dpoint SNAKEPATH[512];
-extern int STOPSPEED;
+/* extern int STOPSPEED; */
extern int FRICTION;
extern int objcount;
diff -ur rott-1.0/rott/rt_in.h trunk/rott/rt_in.h
--- rott-1.0/rott/rt_in.h 2007-05-05 20:44:31.000000000 +0200
+++ trunk/rott/rt_in.h 2007-05-05 15:20:49.000000000 +0200
@@ -147,9 +147,9 @@
extern boolean Paused;
extern volatile int LastScan;
-extern KeyboardDef KbdDefs;
+/* extern KeyboardDef KbdDefs;
extern JoystickDef JoyDefs[];
-extern ControlType Controls[MAXPLAYERS];
+extern ControlType Controls[MAXPLAYERS]; */
extern boolean SpaceBallPresent;
extern boolean CybermanPresent;

File diff suppressed because it is too large Load diff

View file

@ -1,11 +0,0 @@
diff -urN rott-1.0.orig/rott/rt_ted.c rott-1.0/rott/rt_ted.c
--- rott-1.0.orig/rott/rt_ted.c 2007-05-06 23:57:48.000000000 +0200
+++ rott-1.0/rott/rt_ted.c 2007-05-06 23:45:11.000000000 +0200
@@ -5959,6 +6020,7 @@
ambush = (GameRandomNumber("rand actor",0) < 128);
i = randloc[locindex].x;
j = randloc[locindex].y;
+ tile = mapplanes[1][j*mapwidth + i];
SpawnStand(randomtype,i,j,tile-122,ambush);
used[locindex] = 1;
PreCacheActor(randomtype,0);

View file

@ -1,20 +0,0 @@
--- rott-1.0/rott/scriplib.c~ 2007-05-16 16:57:34.000000000 +0200
+++ rott-1.0/rott/scriplib.c 2007-05-16 16:57:34.000000000 +0200
@@ -43,7 +43,7 @@
char token[MAXTOKEN];
char name[MAXTOKEN*2];
-char scriptfilename[30];
+char scriptfilename[512];
char *scriptbuffer,*script_p,*scriptend_p;
int scriptline;
boolean endofscript;
@@ -63,7 +63,7 @@
size = LoadFile (filename, (void **)&scriptbuffer);
- strcpy(&scriptfilename[0],filename);
+ snprintf(scriptfilename, sizeof(scriptfilename), "%s", filename);
script_p = scriptbuffer;
scriptend_p = script_p + size;
scriptline = 1;

View file

@ -1,13 +0,0 @@
--- rott-1.0/rott/develop.h~ 2007-05-11 10:24:32.000000000 +0200
+++ rott-1.0/rott/develop.h 2007-05-11 10:24:32.000000000 +0200
@@ -41,8 +41,8 @@
#define BNACRASHPREVENT 1 //bna added
// Make sure only one of the following are on at one time
-#define SHAREWARE 1
-#define SUPERROTT 0
+#define SHAREWARE 0
+#define SUPERROTT 1
#define SITELICENSE 0
// cute little dopefish thing, only works with special patch?

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Rise of the Triad (Registered)
Comment=RotT Registered launch script, this requires the registered data files
Exec=rott-registered
StartupNotify=false
Terminal=false
Type=Application
Icon=rott.png
Icon=rott
Categories=Game;ActionGame;
Keywords=game;fps;first;person;shooter;rise;triad;rott;

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="addon">
<id>rott-registered.desktop</id>
<extends>rott-shareware.desktop</extends>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Engine for Rise of the Triad registered</name>
<summary>
Place the registered Rise of the Triad datafiles under /usr/share/rott/
</summary>
<url type="homepage">http://icculus.org/rott/</url>
<updatecontact>jwrdegoede_at_gmail.com</updatecontact>
</component>

View file

@ -2,6 +2,11 @@
set -e
if [ -f /usr/share/rott/DARKWAR.WAD ]; then
cd /usr/share/rott
exec rott-registered.bin "$@"
fi
if [ ! -f ~/.rott/registered/*.WAD -a ! -f ~/.rott/registered/*.wad ]; then
zenity --info --text='In order to play the registered version of Rise of the Triad (ROTT), An Apogee Game, the original registered ROTT datafiles are needed.

View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>rott-shareware.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Rise of the Triad</name>
<summary>Apogee's classic 3d first person shooter Rise of the Triad</summary>
<description>
<p>
This is the icculus.org Linux port of Apogee's classic 3d shooter Rise of
the Triad (RotT), which has been released under the GPL by Apogee. This
version is enhanced with the "high" resolution rendering from the winrott
port.
</p>
<p>
This package contains the engine for the shareware version of RotT.
In order to play the shareware version, you will need the shareware
datafiles. Which can be freely downloaded from Apogee/3DRealms, but
cannot be distributed as a part of Fedora. When you start RotT for the
first time it will offer to download the datafiles for you.
</p>
</description>
<url type="homepage">https://icculus.org/rott/</url>
<screenshots>
<screenshot type="default">http://image.dosgamesarchive.com/screenshots/risetriad6.gif</screenshot>
<screenshot>http://image.dosgamesarchive.com/screenshots/risetriad1.gif</screenshot>
<screenshot>http://image.dosgamesarchive.com/screenshots/risetriad2.gif</screenshot>
<screenshot>http://image.dosgamesarchive.com/screenshots/risetriad3.gif</screenshot>
<screenshot>http://image.dosgamesarchive.com/screenshots/risetriad5.gif</screenshot>
</screenshots>
<updatecontact>jwrdegoede_at_fedoraproject.org</updatecontact>
</component>

View file

@ -1,10 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Rise of the Triad
Comment=RotT Shareware launcher, will automatically download the needed data-files
Exec=rott-shareware
StartupNotify=false
Terminal=false
Type=Application
Icon=rott.png
Icon=rott
Categories=Game;ActionGame;
Keywords=game;fps;first;person;shooter;rise;triad;rott;

View file

@ -2,6 +2,12 @@
set -e
# game assets installed with game-data-packager
if [ -f /usr/share/rott/REMOTE1.RTS ]; then
cd /usr/share/rott
exec /usr/bin/rott-shareware.bin "$@"
fi
mkdir -p $HOME/.rott
cd $HOME/.rott

251
rott.spec
View file

@ -1,31 +1,25 @@
Name: rott
Version: 1.0
Release: 2%{?dist}
Version: 1.1.2
Release: 28%{?dist}
Summary: Rise of the Triad
Group: Amusements/Games
License: GPL
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://icculus.org/rott/
Source0: http://icculus.org/rott/releases/rott-1.0.tar.gz
Source0: http://icculus.org/rott/releases/rott-%{version}.tar.gz
Source1: rott-shareware.sh
Source2: rott-registered.sh
Source3: rott.autodlrc
Source4: rott-shareware.desktop
Source5: rott-registered.desktop
Source6: rott-shareware.appdata.xml
Source7: rott-registered.metainfo.xml
# Notice this is made from an edited screenshot and thus derived from the non-
# free datafiles. I believe this constitues fair-use. If anyone disagrees let
# free datafiles. I believe this constitutes fair-use. If anyone disagrees let
# me know and I'll remove it
Source6: rott.png
Patch0: rott-1.0-cvs-fixes.patch
Patch1: rott-1.0-compile.patch
Patch2: rott-1.0-fixes.patch
Patch3: rott-1.0-64bit.patch
Patch4: rott-1.0-winrott.patch
Patch5: rott-1.0-winrott-fixes.patch
Patch6: rott-1.0-more-fixes.patch
# Note: this gets applied during build, not during prep!
Patch99: rott-1.0-registered.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL_mixer-devel desktop-file-utils
Source8: rott.png
BuildRequires: make
BuildRequires: gcc
BuildRequires: SDL_mixer-devel desktop-file-utils libappstream-glib
%description
This is the icculus.org Linux port of Apogee's classic 3d shooter Rise of the
@ -35,8 +29,7 @@ enhanced with the "high" resolution rendering from the winrott port.
%package shareware
Summary: Rise of the Triad shareware version
Group: Amusements/Games
Requires: hicolor-icon-theme
Requires: hicolor-icon-theme autodownloader unzip
%description shareware
This is the icculus.org Linux port of Apogee's classic 3d shooter Rise of the
@ -52,7 +45,6 @@ the datafiles for you.
%package registered
Summary: Rise of the Triad registered version
Group: Amusements/Games
Requires: hicolor-icon-theme zenity
%description registered
@ -68,91 +60,204 @@ from this dir.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
cp -a doc/rott.6 rott-shareware.6
cp -a doc/rott.6 rott-registered.6
sed -i.orig 's/rott/rott-shareware/g' rott-shareware.6
sed -i.orig 's/rott/rott-registered/g' rott-registered.6
touch -r rott-shareware.6.orig rott-shareware.6
touch -r rott-registered.6.orig rott-registered.6
%build
pushd rott
make %{?_smp_mflags} EXTRACFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-pointer-sign"
mv rott rott-shareware.bin
patch -p2 < %{PATCH99}
make clean
make %{?_smp_mflags} EXTRACFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-pointer-sign"
mv rott rott-registered.bin
make %{?_smp_mflags} \
EXTRACFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-pointer-sign" \
ROTT=rott-shareware.bin
make tidy
make %{?_smp_mflags} \
EXTRACFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-pointer-sign" \
ROTT=rott-registered.bin SHAREWARE=0 SUPERROTT=1
popd
%install
rm -rf $RPM_BUILD_ROOT
#no make install target, DIY
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 755 rott/rott-* $RPM_BUILD_ROOT%{_bindir}
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-shareware
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-registered
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 644 %{name}-shareware.6 $RPM_BUILD_ROOT%{_mandir}/man6
install -p -m 644 %{name}-registered.6 $RPM_BUILD_ROOT%{_mandir}/man6
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE4}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE5}
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE4}
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE5}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
install -p -m 644 %{SOURCE6} %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/appdata
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/*.xml
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
install -p -m 644 %{SOURCE6} \
install -p -m 644 %{SOURCE8} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/
%clean
rm -rf $RPM_BUILD_ROOT
%post shareware
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%postun shareware
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%post registered
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%postun registered
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%files shareware
%defattr(-,root,root,-)
%doc README gpl.txt readme.txt
%doc README doc/*.txt
%license COPYING
%{_bindir}/rott-shareware*
%{_mandir}/man6/%{name}-shareware.6*
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}-shareware.desktop
%{_datadir}/appdata/%{name}-shareware.appdata.xml
%{_datadir}/applications/%{name}-shareware.desktop
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%files registered
%defattr(-,root,root,-)
%doc README gpl.txt readme.txt
%doc README doc/*.txt
%license COPYING
%{_bindir}/rott-registered*
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}-registered.desktop
%{_mandir}/man6/%{name}-registered.6*
%{_datadir}/appdata/%{name}-registered.metainfo.xml
%{_datadir}/applications/%{name}-registered.desktop
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%changelog
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.1.2-26
- convert license to SPDX
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-16
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.2-9
- Remove obsolete scriptlets
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sat Jan 16 2016 Hans de Goede <hdegoede@redhat.com> - 1.1.2-4
- Add support for game-data-packager provided assets (rhbz#1295511)
- Add appdata files
- Modernize spec a bit
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 15 2014 Hans de Goede <hdegoede@redhat.com> - 1.1.2-1
- New upstream release 1.1.2
- Fix FTBFS (rhbz#1037308)
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Feb 25 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1-8
- Remove --vendor from desktop files for F19+ https://fedorahosted.org/fesco/ticket/1077
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Aug 4 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1-1
- New upstream release 1.1 (incorperating all our patches!)
* Thu Apr 10 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-6
- Many fixes (and a manpage) ported over from debian
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-5
- Autorebuild for GCC 4.3
* Fri Aug 3 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-4
- Update License tag for new Licensing Guidelines compliance
- Fix 2 calls of memset with the 2nd and 3th argument swaped,
reported by Dave Jones
* Fri May 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-3
- Add missing autodownloader Requires to rott-shareware
* Fri May 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-2
- Add desktop entry and userfriendly launcher script for registered package
- Add a patch fixing crashes with "long" usernames

View file

@ -1 +1 @@
c1c6cbecf00f2229cf2e0053334dcfc1 rott-1.0.tar.gz
d523c7c6c97f95ba84b8cf4deae7db38 rott-1.1.2.tar.gz