Browse files

when initiating dialog immediately suspend script execution

This essentially makes StartDialogue really block until the dialog
has actually started so that the script does not get a chance to alter
state in between.

Fixes the bandit plot in BG2 (JAHEIRA.BCS, JAHEIRAJ.DLG states 201-204).
  • Loading branch information...
fizzet committed May 28, 2013
1 parent 6d8cf95 commit 7007465932b777a922d408e9de7df4a6ee675c31
Showing with 2 additions and 0 deletions.
  1. +2 −0 gemrb/core/GameScript/GSUtils.cpp
@@ -1138,6 +1138,8 @@ void BeginDialog(Scriptable* Sender, Action* parameters, int Flags)
+ //force ProcessActions to suspend until dialog has started
+ Sender->SetWait(1);
if (!ret) {
if (Flags & BD_NOEMPTY) {

0 comments on commit 7007465

Please sign in to comment.