shithub: cstory

Download patch

ref: 7de9ecf1e7afd3a01403ceaa992afb63f73ac22e
parent: 55cc349dd60d7464b313a93d060970f59c4ac816
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Sep 21 08:14:17 EDT 2019

Some commenting

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/ArmsItem.cpp
+++ b/src/ArmsItem.cpp
@@ -425,9 +425,10 @@
 
 	RECT rcView = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
 
-	// Load the inventory script
+	// Save the current script path (to restore it when we get out of the inventory)
 	GetTextScriptPath(old_script_path);
 
+	// Load the inventory script
 	LoadTextScript2("ArmsItem.tsc");
 
 	gCampTitleY = (WINDOW_HEIGHT - 192) / 2;
@@ -434,7 +435,6 @@
 	gCampActive = FALSE;
 	gSelectedItem = 0;
 
-	// Run script
 	arms_num = 0;
 	while (gArmsData[arms_num].code != 0)
 		++arms_num;