commit 2a23b5cdaf6b868ac717799bf42db2466126a17f
Author: Michael Day <michael.day@lexmark.com>
AuthorDate: Thu Apr 21 11:32:20 2022 -0400
Commit: Michael Day <michael.day@lexmark.com>
CommitDate: Thu Apr 21 11:32:20 2022 -0400
Add comment to InventoryMove functions
---
src/heretic/g_game.c | 5 +++++
src/hexen/g_game.c | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c
index 17e8688e..e0b4ede2 100644
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -779,6 +779,11 @@ static void SetJoyButtons(unsigned int buttons_mask)
}
}
+// If an InventoryMove*() function is called when the inventory is not active,
+// it will instead activate the inventory without attempting to change the
+// selected item. This action is indicated by a return value of false.
+// Otherwise, it attempts to change items and will return a value of true.
+
static boolean InventoryMoveLeft()
{
inventoryTics = 5 * 35;
diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c
index c7ec3095..2a1b09d3 100644
--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -744,6 +744,11 @@ static void SetJoyButtons(unsigned int buttons_mask)
}
}
+// If an InventoryMove*() function is called when the inventory is not active,
+// it will instead activate the inventory without attempting to change the
+// selected item. This action is indicated by a return value of false.
+// Otherwise, it attempts to change items and will return a value of true.
+
static boolean InventoryMoveLeft()
{
inventoryTics = 5 * 35;