summaryrefslogtreecommitdiffstats
path: root/package/lxdoom/lxdoom-1.4.4-updated.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/lxdoom/lxdoom-1.4.4-updated.patch')
-rw-r--r--package/lxdoom/lxdoom-1.4.4-updated.patch173
1 files changed, 173 insertions, 0 deletions
diff --git a/package/lxdoom/lxdoom-1.4.4-updated.patch b/package/lxdoom/lxdoom-1.4.4-updated.patch
new file mode 100644
index 000000000..cbb4a0a4f
--- /dev/null
+++ b/package/lxdoom/lxdoom-1.4.4-updated.patch
@@ -0,0 +1,173 @@
+diff -Nrup lxdoom-1.4.4/src/m_menu.c lxdoom-1.4.4-avr32/src/m_menu.c
+--- a/src/m_menu.c 2000-03-17 15:50:30.000000000 -0500
++++ b/src/m_menu.c 2007-10-22 17:18:43.000000000 -0400
+@@ -38,6 +38,7 @@ rcsid[] = "$Id: m_menu.c,v 1.24 2000/03/
+
+ #include <fcntl.h>
+ #include <unistd.h>
++#include <bits/posix1_lim.h>
+
+ #include "doomdef.h"
+ #include "doomstat.h"
+diff -Nrup lxdoom-1.4.4/src/p_maputl.c lxdoom-1.4.4-avr32/src/p_maputl.c
+--- a/src/p_maputl.c 1999-10-12 09:01:13.000000000 -0400
++++ b/src/p_maputl.c 2007-10-22 17:20:56.000000000 -0400
+@@ -322,7 +322,7 @@ void P_SetThingPosition(mobj_t *thing)
+ //
+ // A fast function for testing intersections between things and linedefs.
+
+-boolean CONSTFUNC ThingIsOnLine(const mobj_t *t, const line_t *l)
++boolean ThingIsOnLine(const mobj_t *t, const line_t *l)
+ {
+ int dx = l->dx >> FRACBITS; // Linedef vector
+ int dy = l->dy >> FRACBITS;
+diff -Nrup lxdoom-1.4.4/src/r_data.c lxdoom-1.4.4-avr32/src/r_data.c
+--- a/src/r_data.c 2000-01-25 17:40:45.000000000 -0500
++++ b/src/r_data.c 2007-10-22 17:19:29.000000000 -0400
+@@ -38,6 +38,7 @@ rcsid[] = "$Id: r_data.c,v 1.13 2000/01/
+ #include "r_main.h"
+ #include "r_sky.h"
+ #include "lprintf.h" // jff 08/03/98 - declaration of lprintf
++#include <bits/posix1_lim.h>
+
+ //
+ // Graphics.
+diff -Nrup lxdoom-1.4.4/src/r_segs.c lxdoom-1.4.4-avr32/src/r_segs.c
+--- a/src/r_segs.c 1999-10-17 04:52:04.000000000 -0400
++++ b/src/r_segs.c 2007-10-22 17:14:46.000000000 -0400
+@@ -47,15 +47,15 @@ rcsid[] = "$Id: r_segs.c,v 1.14 1999/10/
+ // killough 1/6/98: replaced globals with statics where appropriate
+
+ // True if any of the segs textures might be visible.
+-static boolean segtextured;
+-static boolean markfloor; // False if the back side is the same plane.
+-static boolean markceiling;
+-static boolean maskedtexture;
+-static int toptexture;
+-static int bottomtexture;
+-static int midtexture;
++boolean segtextured;
++boolean markfloor; // False if the back side is the same plane.
++boolean markceiling;
++boolean maskedtexture;
++int toptexture;
++int bottomtexture;
++int midtexture;
+
+-static fixed_t toptexheight, midtexheight, bottomtexheight; // cph
++fixed_t toptexheight, midtexheight, bottomtexheight; // cph
+
+ angle_t rw_normalangle; // angle to line origin
+ int rw_angle1;
+@@ -65,28 +65,28 @@ lighttable_t **walllights;
+ //
+ // regular wall
+ //
+-static int rw_x;
+-static int rw_stopx;
+-static angle_t rw_centerangle;
+-static fixed_t rw_offset;
+-static fixed_t rw_scale;
+-static fixed_t rw_scalestep;
+-static fixed_t rw_midtexturemid;
+-static fixed_t rw_toptexturemid;
+-static fixed_t rw_bottomtexturemid;
+-static int worldtop;
+-static int worldbottom;
+-static int worldhigh;
+-static int worldlow;
+-static fixed_t pixhigh;
+-static fixed_t pixlow;
+-static fixed_t pixhighstep;
+-static fixed_t pixlowstep;
+-static fixed_t topfrac;
+-static fixed_t topstep;
+-static fixed_t bottomfrac;
+-static fixed_t bottomstep;
+-static short *maskedtexturecol;
++int rw_x;
++int rw_stopx;
++angle_t rw_centerangle;
++fixed_t rw_offset;
++fixed_t rw_scale;
++fixed_t rw_scalestep;
++fixed_t rw_midtexturemid;
++fixed_t rw_toptexturemid;
++fixed_t rw_bottomtexturemid;
++int worldtop;
++int worldbottom;
++int worldhigh;
++int worldlow;
++fixed_t pixhigh;
++fixed_t pixlow;
++fixed_t pixhighstep;
++fixed_t pixlowstep;
++fixed_t topfrac;
++fixed_t topstep;
++fixed_t bottomfrac;
++fixed_t bottomstep;
++short *maskedtexturecol;
+
+ //
+ // R_ScaleFromGlobalAngle
+--- a/src/wi_stuff.c 2008-02-12 14:02:42.000000000 -0500
++++ b/src/wi_stuff.c 2008-02-12 14:04:34.000000000 -0500
+@@ -368,7 +368,7 @@ static const patch_t * items;
+ static const patch_t * frags;
+
+ // Time sucks.
+-static const patch_t * time;
++static const patch_t * mytime;
+ static const patch_t * par;
+ static const patch_t * sucks;
+
+diff -Nrup lxdoom-1.4.4/src/d_main.c lxdoom-1.4.4-avr32/src/d_main.c
+--- a/src/d_main.c 2000-03-27 05:33:49.000000000 -0500
++++ b/src/d_main.c 2007-10-22 17:18:05.000000000 -0400
+@@ -39,7 +39,7 @@ static const char rcsid[] = "$Id: d_main
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-
++#include <bits/posix1_lim.h>
+ #include "doomdef.h"
+ #include "doomstat.h"
+ #include "dstrings.h"
+@@ -228,7 +228,7 @@ void D_Display (void)
+ case -1:
+ case GS_LEVEL:
+ V_SetPalette(0); // cph - use default (basic) palette
+- default:
++ default:;
+ }
+
+ switch (gamestate) {
+@@ -241,7 +241,7 @@ void D_Display (void)
+ case GS_DEMOSCREEN:
+ D_PageDrawer();
+ break;
+- default:
++ default:;
+ }
+ } else if (gametic) { // In a level
+ boolean redrawborderstuff;
+diff -Nrup lxdoom-1.4.4/src/g_game.c lxdoom-1.4.4-avr32/src/g_game.c
+--- a/src/g_game.c 2000-03-17 15:50:30.000000000 -0500
++++ b/src/g_game.c 2007-10-22 17:18:10.000000000 -0400
+@@ -67,6 +67,7 @@ rcsid[] = "$Id: g_game.c,v 1.36 2000/03/
+ #include "lprintf.h"
+ #include "i_main.h"
+ #include "i_system.h"
++#include <bits/posix1_lim.h>
+
+ #define SAVEGAMESIZE 0x20000
+ #define SAVESTRINGSIZE 24
+@@ -868,7 +869,7 @@ void G_Ticker (void)
+ switch (prevgamestate) {
+ case GS_INTERMISSION:
+ WI_End();
+- default:
++ default:;
+ }
+ prevgamestate = gamestate;
+ } \ No newline at end of file