FULLPIPE: Implement sceneHandler06_sub04()

This commit is contained in:
Eugene Sandulenko 2013-12-17 23:32:30 +02:00
parent 17cb840bc2
commit b4ce81baf9
3 changed files with 39 additions and 8 deletions

View file

@ -810,6 +810,25 @@ bool chainQueue(int queueId, int flags) {
return true;
}
bool chainObjQueue(StaticANIObject *obj, int queueId, int flags) {
MessageQueue *mq = g_fullpipe->_currentScene->getMessageQueueById(queueId);
if (!mq)
return false;
MessageQueue *nmq = new MessageQueue(mq, 0, 0);
nmq->_flags |= flags;
if (!nmq->chain(obj)) {
delete nmq;
return false;
}
return true;
}
void postExCommand(int parentId, int keyCode, int x, int y, int f20, int f14) {
ExCommand *ex = new ExCommand(parentId, 17, 64, 0, 0, 0, 1, 0, 0, 0);