freebsd-ports/games/zdoom/files/patch-src_p__spec.cpp
Piotr Kubaj 7f8c0ba2d7 games/zdoom: fix build on non-x86
gme needs the same patching as for other ports.

p_spec.cpp uses chars, which are unsigned on ARM and POWER by default.

Approved by:	tier 2 blanket
MFH:		2021Q1
2021-03-05 01:26:26 +00:00

11 lines
453 B
C++

--- src/p_spec.cpp.orig 2021-03-05 01:22:24 UTC
+++ src/p_spec.cpp
@@ -1269,7 +1269,7 @@ void P_InitSectorSpecial(sector_t *sector, int special
if (sector->special >= Scroll_North_Slow &&
sector->special <= Scroll_SouthWest_Fast)
{ // Hexen scroll special
- static const char hexenScrollies[24][2] =
+ static const signed char hexenScrollies[24][2] =
{
{ 0, 1 }, { 0, 2 }, { 0, 4 },
{ -1, 0 }, { -2, 0 }, { -4, 0 },