aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-11-14 23:02:38 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-11-14 23:02:38 +0800
commitdd721006dcd975142d4f04373412b41471ce73f8 (patch)
tree7771a62e012d508b6a903bb934fbcd1ed905c4c3 /games
parent226683f84f897ab0fbd32f2d29f543869f75717f (diff)
downloadfreebsd-ports-gnome-dd721006dcd975142d4f04373412b41471ce73f8.tar.gz
freebsd-ports-gnome-dd721006dcd975142d4f04373412b41471ce73f8.tar.zst
freebsd-ports-gnome-dd721006dcd975142d4f04373412b41471ce73f8.zip
- Update to 1.6.0
Diffstat (limited to 'games')
-rw-r--r--games/wyrmgus/Makefile2
-rw-r--r--games/wyrmgus/distinfo4
-rw-r--r--games/wyrmgus/files/patch-src_include_unittype.h23
-rw-r--r--games/wyrmgus/files/patch-src_unit_unittype.cpp18
-rw-r--r--games/wyrmgus/files/patch-src_unit_upgrade.cpp20
5 files changed, 64 insertions, 3 deletions
diff --git a/games/wyrmgus/Makefile b/games/wyrmgus/Makefile
index 8685e01a9417..e62534741449 100644
--- a/games/wyrmgus/Makefile
+++ b/games/wyrmgus/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= wyrmgus
-PORTVERSION= 1.4.1
+PORTVERSION= 1.6.0
DISTVERSIONPREFIX= v
CATEGORIES= games devel
diff --git a/games/wyrmgus/distinfo b/games/wyrmgus/distinfo
index b75136fad00c..68c24cf64c5c 100644
--- a/games/wyrmgus/distinfo
+++ b/games/wyrmgus/distinfo
@@ -1,2 +1,2 @@
-SHA256 (Andrettin-Wyrmgus-v1.4.1_GH0.tar.gz) = bee4c96ddd74e6c3105d725c37dfb774a6be53465355c7b578824b28719b89dc
-SIZE (Andrettin-Wyrmgus-v1.4.1_GH0.tar.gz) = 1176777
+SHA256 (Andrettin-Wyrmgus-v1.6.0_GH0.tar.gz) = f8710d2a258e1f1fcf7a47d29c70add0654c7fbcab615d2418e0157a688289bf
+SIZE (Andrettin-Wyrmgus-v1.6.0_GH0.tar.gz) = 1184771
diff --git a/games/wyrmgus/files/patch-src_include_unittype.h b/games/wyrmgus/files/patch-src_include_unittype.h
new file mode 100644
index 000000000000..57b47cabf8e2
--- /dev/null
+++ b/games/wyrmgus/files/patch-src_include_unittype.h
@@ -0,0 +1,23 @@
+--- src/include/unittype.h.orig 2015-11-10 20:52:37 UTC
++++ src/include/unittype.h
+@@ -59,6 +59,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <map>
++#include <cstring>
+
+ /*----------------------------------------------------------------------------
+ -- Declarations
+@@ -132,9 +133,9 @@ public:
+ FrameWidth(0), FrameHeight(0),
+ Animations(NULL), Construction(NULL), Sprite(NULL), ShadowSprite(NULL), LeftArmSprite(NULL), RightArmSprite(NULL), HairSprite(NULL), ClothingSprite(NULL), ClothingLeftArmSprite(NULL), ClothingRightArmSprite(NULL), PantsSprite(NULL), ShoesSprite(NULL), WeaponSprite(NULL), ShieldSprite(NULL), HelmetSprite(NULL)
+ {
+- memset(SpriteWhenLoaded, NULL, sizeof(SpriteWhenLoaded));
+- memset(SpriteWhenEmpty, NULL, sizeof(SpriteWhenEmpty));
+- memset(ShieldAnimation, NULL, sizeof(ShieldAnimation));
++ memset(SpriteWhenLoaded, 0, sizeof(SpriteWhenLoaded));
++ memset(SpriteWhenEmpty, 0, sizeof(SpriteWhenEmpty));
++ memset(ShieldAnimation, 0, sizeof(ShieldAnimation));
+ }
+
+ ~VariationInfo();
diff --git a/games/wyrmgus/files/patch-src_unit_unittype.cpp b/games/wyrmgus/files/patch-src_unit_unittype.cpp
new file mode 100644
index 000000000000..3762f9efbb1e
--- /dev/null
+++ b/games/wyrmgus/files/patch-src_unit_unittype.cpp
@@ -0,0 +1,18 @@
+--- src/unit/unittype.cpp.orig 2015-11-10 20:52:37 UTC
++++ src/unit/unittype.cpp
+@@ -761,13 +761,13 @@ CUnitType::CUnitType() :
+ //Wyrmgus end
+ memset(ResInfo, 0, sizeof(ResInfo));
+ //Wyrmgus start
+- memset(VarInfo, NULL, sizeof(VarInfo));
++ memset(VarInfo, 0, sizeof(VarInfo));
+ memset(Drops, 0, sizeof(Drops));
+ // memset(ImproveIncomes, 0, sizeof(ImproveIncomes));
+ //Wyrmgus end
+ memset(MissileOffsets, 0, sizeof(MissileOffsets));
+ //Wyrmgus start
+- memset(ShieldAnimation, NULL, sizeof(ShieldAnimation));
++ memset(ShieldAnimation, 0, sizeof(ShieldAnimation));
+ //Wyrmgus end
+ }
+
diff --git a/games/wyrmgus/files/patch-src_unit_upgrade.cpp b/games/wyrmgus/files/patch-src_unit_upgrade.cpp
new file mode 100644
index 000000000000..66143aa99606
--- /dev/null
+++ b/games/wyrmgus/files/patch-src_unit_upgrade.cpp
@@ -0,0 +1,20 @@
+--- src/unit/upgrade.cpp.orig 2015-11-10 20:52:37 UTC
++++ src/unit/upgrade.cpp
+@@ -298,7 +298,7 @@ static int CclDefineModifier(lua_State *
+ um->UpgradeId = UpgradeIdByIdent(upgrade_name);
+
+ if (um->UpgradeId == -1) {
+- LuaError(l, "Error when defining upgrade modifier: upgrade \"%s\" doesn't exist." _C_ upgrade_name);
++ LuaError(l, "Error when defining upgrade modifier: upgrade \"%s\" doesn't exist." _C_ upgrade_name.c_str());
+ }
+ //Wyrmgus end
+
+@@ -546,7 +546,7 @@ static int CclAcquireTrait(lua_State *l)
+ if (!strncmp(ident, "upgrade-", 8)) {
+ TraitAcquire(*unit, CUpgrade::Get(ident));
+ unit->Trait = ident;
+- } else if (ident == "") {
++ } else if (strlen(ident) == 0) {
+ if (!unit->Trait.empty()) { //remove previous trait, if any
+ if (!GameSettings.NoRandomness || unit->Type->BoolFlag[HERO_INDEX].value) { // if in no randomness setting, only change trait modifiers if the unit is a hero
+ IndividualUpgradeLost(*unit, CUpgrade::Get(unit->Trait));