Prevent Li's head from showing through his helmet when he fades out. miscellaneous-fixes
authorachurch
Thu, 06 Jan 2011 01:31:07 +0900
branchmiscellaneous-fixes
changeset 634 a65d3f91b17f
parent 633 ef283c62e0d1
child 635 0f5790dd14ff
child 639 3e9ea3275214
Prevent Li's head from showing through his helmet when he fades out. This patch fixes a cosmetic issue in which Li's head would be partially visible through his helmet as the sprite faded out, observable when Li enters his cave in the Veil.
game_scripts/scripts/entities/li.lua
--- a/game_scripts/scripts/entities/li.lua	Thu Jan 06 01:26:23 2011 +0900
+++ b/game_scripts/scripts/entities/li.lua	Thu Jan 06 01:31:07 2011 +0900
@@ -1173,6 +1173,8 @@
 		--debugLog("setting flag to 1")
 		setFlag(FLAG_LI, 1)
 		entity_alpha(me, 0, 1)
+		-- Make sure we don't see the head through the fading helmet.
+		bone_showFrame(bone_head, -1)
 	elseif entity_getState(me)==STATE_BURST then
 		debugLog("burst")
 		burstDelay = 6