[minetest-mod-animals] 01/07: Add patch to fix #877328

Julien Puydt julien.puydt at laposte.net
Sun Oct 8 09:51:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository minetest-mod-animals.

commit d54273a72d1acf0c76d281430f1b7eef6e027a7d
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Oct 8 09:19:27 2017 +0200

    Add patch to fix #877328
---
 animal_dm/vault.lua            |  6 +++---
 debian/changelog               |  6 ++++++
 debian/patches/series          |  1 +
 debian/patches/vault_nil.patch | 26 ++++++++++++++++++++++++++
 4 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/animal_dm/vault.lua b/animal_dm/vault.lua
index 266206a..a59e4b4 100644
--- a/animal_dm/vault.lua
+++ b/animal_dm/vault.lua
@@ -447,9 +447,9 @@ minetest.register_on_generated(function(minp, maxp, seed)
 
     --initialize check values
     local is_empty = false
-    local light = nil
+    local light = 0
     local last_empty = false
-    local last_light = nil
+    local last_light = 0
     local possible_entrances = {}
     local d = 4
 
@@ -562,4 +562,4 @@ minetest.register_on_generated(function(minp, maxp, seed)
         --dm_debug("Entrance: "..dump(entrance))
         vault.generate_random_vault(entrance.p, entrance.dir, seed)
     end
-end)
\ No newline at end of file
+end)
diff --git a/debian/changelog b/debian/changelog
index 3386e6b..f6f8299 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+minetest-mod-animals (2.5.0-3) UNRELEASED; urgency=medium
+
+  * Add patch to fix a crash. (Closes: #877328)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sun, 08 Oct 2017 09:18:41 +0200
+
 minetest-mod-animals (2.5.0-2) unstable; urgency=medium
 
   * Better d/copyright, mentioning the GPL-2+ fragment in the clownfish model.
diff --git a/debian/patches/series b/debian/patches/series
index 4837e31..32602dd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+vault_nil.patch
 add_missing_adv_spawning_dep.patch
diff --git a/debian/patches/vault_nil.patch b/debian/patches/vault_nil.patch
new file mode 100644
index 0000000..3c4f55f
--- /dev/null
+++ b/debian/patches/vault_nil.patch
@@ -0,0 +1,26 @@
+Description: fix for #877328
+Author: numberZero
+Comment: proposed by numberZero, upstream
+Forwarded: no
+
+--- a/animal_dm/vault.lua
++++ b/animal_dm/vault.lua
+@@ -447,9 +447,9 @@
+ 
+     --initialize check values
+     local is_empty = false
+-    local light = nil
++    local light = 0
+     local last_empty = false
+-    local last_light = nil
++    local last_light = 0
+     local possible_entrances = {}
+     local d = 4
+ 
+@@ -562,4 +562,4 @@
+         --dm_debug("Entrance: "..dump(entrance))
+         vault.generate_random_vault(entrance.p, entrance.dir, seed)
+     end
+-end)
+\ No newline at end of file
++end)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-animals.git



More information about the Pkg-games-commits mailing list