From ea4d4528cad5bc954fe28b7047a38ff27ed53fa0 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 27 Feb 2017 13:51:28 +0000 Subject: - Switch to USES=autoreconf - Fix build with clang 4.0 ( PR: 216639 Reported by: jbeich@FreeBSD.org Approved by: maintainer timeout (aragon@phat.za.net, 4 weeks) --- games/d2x-xl/files/patch-objects_reactor.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/d2x-xl/files/patch-objects_reactor.cpp (limited to 'games/d2x-xl/files/patch-objects_reactor.cpp') diff --git a/games/d2x-xl/files/patch-objects_reactor.cpp b/games/d2x-xl/files/patch-objects_reactor.cpp new file mode 100644 index 000000000000..4fd175843497 --- /dev/null +++ b/games/d2x-xl/files/patch-objects_reactor.cpp @@ -0,0 +1,11 @@ +--- objects/reactor.cpp.orig 2017-02-01 15:11:32 UTC ++++ objects/reactor.cpp +@@ -184,7 +184,7 @@ else { + + void InitCountdown (CTrigger *trigP, int bReactorDestroyed, int nTimer) + { +-if (trigP && (trigP->m_info.time > 0)) ++if (trigP && trigP->m_info.time) + gameData.reactor.countdown.nTotalTime = trigP->m_info.time [0]; + else if (gameStates.app.nBaseCtrlCenExplTime != DEFAULT_CONTROL_CENTER_EXPLOSION_TIME) + gameData.reactor.countdown.nTotalTime = -- cgit v1.2.3