mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- 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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user