1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Update to 1.6.0

This commit is contained in:
Dmitry Marakasov 2015-11-14 15:02:38 +00:00
parent f8dff2afd7
commit 82b52b2365
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401572
5 changed files with 64 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= wyrmgus
PORTVERSION= 1.4.1
PORTVERSION= 1.6.0
DISTVERSIONPREFIX= v
CATEGORIES= games devel

View File

@ -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

View File

@ -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();

View File

@ -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
}

View File

@ -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));