GRIM: Fix keyboard jams in inventory in beaver dam

This commit is contained in:
Andrea Corna 2012-01-24 00:12:38 +01:00
parent d35a890f46
commit 8e9ecbf0fe
3 changed files with 24 additions and 0 deletions

View File

@ -30,6 +30,16 @@ List of fixed bugs in GF scripts:
with the wrong arguments (a table instead of the coordinates instead
of single coordinates).
-Fix bug #397 "Keyboard jams in inventory in beaver dam."
The function bd.fake_beaver animates a beaver when another one has jumped
into the dam. This animation is performed into a cutscene block (between
START/END_CUT_SCENE()), so if the user opens the inventory a bit before
this function is called, the interface will froze, since in
cutscenes the keyboard is locked. This patch check if the inventory is open
(with inInventorySet()) before bd.fake_beaver and MakeSectorActive
are called (in bd.throw_bone_in_tar) and wait until it's closed,
then performs the animation.
+Untriggered contents:
-Fix the missing dialogue with Domino at third year
In dlg_dom2.lua, the argument of CheckFirstTime is wrong; this

View File

@ -0,0 +1,14 @@
#Fix issue #397: Keyboard jams in inventory in beaver dam.
begin 83a182eca8030f357068d7dffc992332 #Both v1.0 and v1.01
replace 1bca 6b #Increase the size of function code block
insert 1e0d 0c #Make space for code
replace 1e0d 6d 04 1e 39 79 00 1e 56 7a 00 71 0a #Insert a check for the inventory
#Const value
replace 1e37 57 #Increase the counter of constants by one
insert 22ed 12 #Make space for one new string
replace 22ed 53 00 0f 96 91 b6 91 89 9a 91 8b 90 8d 86 ac 9a 8b ff #Set string inInventorySet (number 0x5d)
end