summaryrefslogtreecommitdiff
path: root/games-rpg/gwiz/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/gwiz/files
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/gwiz/files')
-rw-r--r--games-rpg/gwiz/files/gwiz-0.8-buffer.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/games-rpg/gwiz/files/gwiz-0.8-buffer.patch b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
new file mode 100644
index 000000000000..44ee9aec15fb
--- /dev/null
+++ b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
@@ -0,0 +1,23 @@
+--- a/src/equip.c
++++ b/src/equip.c
+@@ -120,7 +120,7 @@
+ return (i);
+
+ /* if we get this far, there are no equippable items before the current */
+- for (i = 8; i > offset; i--)
++ for (i = 7; i > offset; i--)
+ if (pawn->item[i].usage & USAGE_EQUIPPABLE)
+ return (i);
+ return (-1);
+--- a/src/shop.c
++++ b/src/shop.c
+@@ -290,8 +290,7 @@
+
+ SDL_BlitSurface (name, NULL, area, &dest);
+
+- snprintf (price, sizeof(char)*8, "%d", pawn->item[i].sellfor);
+- price[9] = '\0';
++ snprintf (price, sizeof(price), "%d", pawn->item[i].sellfor);
+ profit = GwizRenderText (price);
+ dest.x = area->w - profit->w;
+ dest.w = profit->w;