- Bugfix: Creature Quest Cutscene was not triggered

o There was a wrong condition in LUA script (In the ja2 source code this condition works, but not in LUA!!!)
-> WRONG:   if ( giLairID )           -> this is always triggered as TRUE and therefore never starts the cutscene
-> CORRECT: if ( giLairID ~= 0 )      -> if the quest has not started ( value != 0), start the cutscene

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1763 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Wanne
2013-09-10 11:24:11 +00:00
parent a36de16fd6
commit 762a939e59
3 changed files with 6 additions and 3 deletions
@@ -176,7 +176,8 @@ function CheckConditionsForTriggeringCreatureQuest( sSectorX, sSectorY, bSectorZ
return -- No scifi, no creatures...
end
if ( giLairID ) then
-- if ( giLairID ) -> that does not work in LUA, because that is always TRUE!!
if ( giLairID ~= 0 ) then
return -- Creature quest already begun
end
@@ -176,7 +176,8 @@ function CheckConditionsForTriggeringCreatureQuest( sSectorX, sSectorY, bSectorZ
return -- No scifi, no creatures...
end
if ( giLairID ) then
-- if ( giLairID ) -> that does not work in LUA, because that is always TRUE!!
if ( giLairID ~= 0 ) then
return -- Creature quest already begun
end
@@ -175,7 +175,8 @@ function CheckConditionsForTriggeringCreatureQuest( sSectorX, sSectorY, bSectorZ
return -- No scifi, no creatures...
end
if ( giLairID ) then
-- if ( giLairID ) -> that does not work in LUA, because that is always TRUE!!
if ( giLairID ~= 0 ) then
return -- Creature quest already begun
end