ILLUSIONS: More work on BBDOU specific code (cursor, bubble)

- Add input handling code
This commit is contained in:
johndoe123 2014-03-25 19:57:21 +01:00 committed by Eugene Sandulenko
parent 28cb39eb2b
commit e05a789975
13 changed files with 1011 additions and 38 deletions

View file

@ -29,6 +29,7 @@
#include "illusions/scriptman.h"
#include "illusions/scriptresource.h"
#include "illusions/scriptthread.h"
#include "illusions/specialcode.h"
namespace Illusions {
@ -559,11 +560,11 @@ void ScriptOpcodes::opRunSpecialCode(ScriptThread *scriptThread, OpCall &opCall)
ARG_SKIP(2);
ARG_UINT32(specialCodeId);
_vm->_scriptMan->_callerThreadId = opCall._callerThreadId;
// TODO _vm->runSpecialCode(specialCodeId, opCall._code + 8, opCall._threadId);
_vm->_specialCode->run(specialCodeId, opCall);
_vm->_scriptMan->_callerThreadId = 0;
//DEBUG Resume calling thread, later done by the special code
_vm->notifyThreadId(opCall._callerThreadId);
//_vm->notifyThreadId(opCall._callerThreadId);
}