[Scummvm-git-logs] scummvm master -> 2cbf7da3199f61878fff8c8bfd1300cb6a4068ab

sev- sev at scummvm.org
Mon Sep 5 00:14:14 CEST 2016


This automated email contains information about 4 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
26f55005b3 FULLPIPE: Rename in ExCommand structure
9b21c5de2e FULLPIPE: Signed read for delay in PreloadItems
7e07e01963 FULLPIPE: Renames in PreloadItem
2cbf7da319 FULLPIPE: Rename is GabeObject


Commit: 26f55005b3dad33a6ca9ff0b9d0df98bb4478be0
    https://github.com/scummvm/scummvm/commit/26f55005b3dad33a6ca9ff0b9d0df98bb4478be0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-04T23:54:43+02:00

Commit Message:
FULLPIPE: Rename in ExCommand structure

Changed paths:
    engines/fullpipe/anihandler.cpp
    engines/fullpipe/behavior.cpp
    engines/fullpipe/fullpipe.cpp
    engines/fullpipe/gameloader.cpp
    engines/fullpipe/interaction.cpp
    engines/fullpipe/lift.cpp
    engines/fullpipe/messagehandlers.cpp
    engines/fullpipe/messages.cpp
    engines/fullpipe/messages.h
    engines/fullpipe/modal.cpp
    engines/fullpipe/motion.cpp
    engines/fullpipe/scenes/scene03.cpp
    engines/fullpipe/scenes/scene04.cpp
    engines/fullpipe/scenes/scene05.cpp
    engines/fullpipe/scenes/scene06.cpp
    engines/fullpipe/scenes/scene08.cpp
    engines/fullpipe/scenes/scene09.cpp
    engines/fullpipe/scenes/scene10.cpp
    engines/fullpipe/scenes/scene11.cpp
    engines/fullpipe/scenes/scene13.cpp
    engines/fullpipe/scenes/scene14.cpp
    engines/fullpipe/scenes/scene15.cpp
    engines/fullpipe/scenes/scene16.cpp
    engines/fullpipe/scenes/scene17.cpp
    engines/fullpipe/scenes/scene18and19.cpp
    engines/fullpipe/scenes/scene21.cpp
    engines/fullpipe/scenes/scene22.cpp
    engines/fullpipe/scenes/scene23.cpp
    engines/fullpipe/scenes/scene25.cpp
    engines/fullpipe/scenes/scene26.cpp
    engines/fullpipe/scenes/scene27.cpp
    engines/fullpipe/scenes/scene28.cpp
    engines/fullpipe/scenes/scene29.cpp
    engines/fullpipe/scenes/scene32.cpp
    engines/fullpipe/scenes/scene33.cpp
    engines/fullpipe/scenes/scene34.cpp
    engines/fullpipe/scenes/scene35.cpp
    engines/fullpipe/scenes/scene36.cpp
    engines/fullpipe/scenes/scene37.cpp
    engines/fullpipe/sound.cpp
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/anihandler.cpp b/engines/fullpipe/anihandler.cpp
index 9fc586d..dc1e152 100644
--- a/engines/fullpipe/anihandler.cpp
+++ b/engines/fullpipe/anihandler.cpp
@@ -94,7 +94,7 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
 			ex = new ExCommand(ani->_id, 1, _items[idx]->subItems[subidx]->movement->_id, 0, 0, 0, 1, 0, 0, 0);
 		}
 
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		ex->_field_3C = 1;
 		ex->_field_24 = 1;
 
@@ -350,7 +350,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(s->movement, mkQueue->ani->_id, x1, y1, &x2, &y2, -1);
 		ex2->_parId = mq->_id;
-		ex2->_keyCode = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_okeyCode;
 
 		mq->addExCommandToEnd(ex2);
 
@@ -367,7 +367,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(mov, mkQueue->ani->_id, x1, y1, &x2, &y2, plen);
 		ex2->_parId = mq->_id;
-		ex2->_keyCode = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_okeyCode;
 
 		mq->addExCommandToEnd(ex2);
 	}
@@ -377,7 +377,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(s->movement, mkQueue->ani->_id, x1, y1, &x2, &y2, -1);
 		ex2->_parId = mq->_id;
-		ex2->_keyCode = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_okeyCode;
 
 		mq->addExCommandToEnd(ex2);
 
@@ -387,7 +387,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 	ExCommand *ex = new ExCommand(mkQueue->ani->_id, 5, -1, mkQueue->x1, mkQueue->y1, 0, 1, 0, 0, 0);
 
 	ex->_field_14 = mkQueue->field_1C;
-	ex->_keyCode = mkQueue->ani->_okeyCode;
+	ex->_param = mkQueue->ani->_okeyCode;
 	ex->_field_24 = 0;
 	ex->_excFlags |= 3;
 
@@ -750,7 +750,7 @@ ExCommand2 *AniHandler::createCommand(Movement *mov, int objId, int x1, int y1,
 	ex->_messageNum = mov->_id;
 	ex->_field_14 = len;
 	ex->_field_24 = 1;
-	ex->_keyCode = -1;
+	ex->_param = -1;
 
 	for (uint i = 0; i < cnt; i++)
 		delete points[i];
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp
index 92fb952..1afa583 100644
--- a/engines/fullpipe/behavior.cpp
+++ b/engines/fullpipe/behavior.cpp
@@ -181,7 +181,7 @@ void BehaviorManager::updateStaticAniBehavior(StaticANIObject *ani, int delay, B
 	}
 
 	if (mq) {
-		mq->replaceKeyCode(-1, ani->_okeyCode);
+		mq->setParamInt(-1, ani->_okeyCode);
 		mq->chain(ani);
 	}
 }
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp
index 54a7793..855ece1 100644
--- a/engines/fullpipe/fullpipe.cpp
+++ b/engines/fullpipe/fullpipe.cpp
@@ -347,7 +347,7 @@ void FullpipeEngine::updateEvents() {
 				}
 
 				ex = new ExCommand(0, 17, 36, 0, 0, 0, 1, 0, 0, 0);
-				ex->_keyCode = 32;
+				ex->_param = 32;
 				ex->_excFlags |= 3;
 				ex->handle();
 				break;
@@ -359,7 +359,7 @@ void FullpipeEngine::updateEvents() {
 				}
 
 				ex = new ExCommand(0, 17, 36, 0, 0, 0, 1, 0, 0, 0);
-				ex->_keyCode = event.kbd.keycode;
+				ex->_param = event.kbd.keycode;
 				ex->_excFlags |= 3;
 				ex->handle();
 				break;
@@ -373,7 +373,7 @@ void FullpipeEngine::updateEvents() {
 					getDebugger()->onFrame();
 				}
 				ex = new ExCommand(0, 17, 36, 0, 0, 0, 1, 0, 0, 0);
-				ex->_keyCode = event.kbd.keycode;
+				ex->_param = event.kbd.keycode;
 				ex->_excFlags |= 3;
 				ex->handle();
 				break;
@@ -414,7 +414,7 @@ void FullpipeEngine::updateEvents() {
 
 				ex->_sceneClickX = _sceneRect.left + ex->_x;
 				ex->_sceneClickY = _sceneRect.top + ex->_y;
-				ex->_keyCode = getGameLoaderInventory()->getSelectedItemId();
+				ex->_param = getGameLoaderInventory()->getSelectedItemId();
 				ex->_excFlags |= 3;
 				_lastInputTicks = _updateTicks;
 				ex->handle();
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index ee9a7cd..a013b1d 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -398,7 +398,7 @@ bool GameLoader::preloadScene(int sceneId, int entranceId) {
 
 	ExCommand *ex = new ExCommand(_preloadItems[idx]->sceneId, 17, 62, 0, 0, 0, 1, 0, 0, 0);
 	ex->_excFlags = 2;
-	ex->_keyCode = _preloadItems[idx]->keyCode;
+	ex->_param = _preloadItems[idx]->keyCode;
 
 	_preloadSceneId = 0;
 	_preloadEntranceId = 0;
diff --git a/engines/fullpipe/interaction.cpp b/engines/fullpipe/interaction.cpp
index 641d6e1..7620f92 100644
--- a/engines/fullpipe/interaction.cpp
+++ b/engines/fullpipe/interaction.cpp
@@ -189,7 +189,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
 			ex = new ExCommand((subj ? subj->_id : 0), 55, 0, 0, 0, 0, 1, 0, 0, 0);
 			ex->_x = obj->_id;
 			ex->_y = obj->_okeyCode;
-			ex->_keyCode = subj ? subj->_okeyCode : 0;
+			ex->_param = subj ? subj->_okeyCode : 0;
 			ex->_excFlags = 3;
 			ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
 			ex->_field_20 = invId;
@@ -258,7 +258,7 @@ LABEL_38:
 
 		if (!(inter->_flags & 0x10000)) {
 			ex = new ExCommand(obj->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
-			ex->_keyCode = obj->_okeyCode;
+			ex->_param = obj->_okeyCode;
 			ex->_field_14 = 0x100;
 			ex->_messageNum = 0;
 			ex->_excFlags = 3;
@@ -266,14 +266,14 @@ LABEL_38:
 		}
 
 		ex = new ExCommand(obj->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = obj->_okeyCode;
+		ex->_param = obj->_okeyCode;
 		ex->_field_14 = 0x100;
 		ex->_messageNum = 0;
 		ex->_excFlags = 3;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(subj->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = subj->_okeyCode;
+		ex->_param = subj->_okeyCode;
 		ex->_field_14 = 0x100;
 		ex->_messageNum = 0;
 		ex->_excFlags = 3;
@@ -281,7 +281,7 @@ LABEL_38:
 
 		ex = new ExCommand(subj->_id, 17, 0x40, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = 0;
+		ex->_param = 0;
 		mq->addExCommandToEnd(ex);
 
 		if (!mq->chain(subj)) {
@@ -320,7 +320,7 @@ LABEL_38:
 			ex = new ExCommand(subj->_id, 55, 0, 0, 0, 0, 1, 0, 0, 0);
 			ex->_x = obj->_id;
 			ex->_y = obj->_okeyCode;
-			ex->_keyCode = subj->_okeyCode;
+			ex->_param = subj->_okeyCode;
 			ex->_excFlags = 3;
 			ex->_field_20 = invId;
 			ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
@@ -332,7 +332,7 @@ LABEL_38:
 			ex->_x = xpos;
 			ex->_y = ypos;
 			ex->_excFlags |= 3;
-			ex->_keyCode = 6;
+			ex->_param = 6;
 			ex->_field_14 = obj->_id;
 			ex->_field_20 = obj->_okeyCode;
 			ex->postMessage();
@@ -362,13 +362,13 @@ LABEL_38:
 					} else {
 						ex = new ExCommand(ani->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
 						ex->_field_14 = 0x80;
-						ex->_keyCode = ani->_okeyCode;
+						ex->_param = ani->_okeyCode;
 						ex->_excFlags = 3;
 						mq->addExCommandToEnd(ex);
 					}
 				}
 				ex = new ExCommand(ani->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-				ex->_keyCode = ani->_okeyCode;
+				ex->_param = ani->_okeyCode;
 				ex->_field_14 = 0x100;
 				ex->_excFlags = 3;
 				mq->addExCommandToEnd(ex);
@@ -376,7 +376,7 @@ LABEL_38:
 				ex = new ExCommand(subj->_id, 55, 0, 0, 0, 0, 1, 0, 0, 0);
 				ex->_x = ani->_id;
 				ex->_y = ani->_okeyCode;
-				ex->_keyCode = subj->_okeyCode;
+				ex->_param = subj->_okeyCode;
 				ex->_excFlags = 2;
 				ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
 				ex->_field_20 = invId;
diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp
index 93bfbaa..32a4532 100644
--- a/engines/fullpipe/lift.cpp
+++ b/engines/fullpipe/lift.cpp
@@ -240,23 +240,23 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
 
 	if (!cmd) {
 		ex = new ExCommand(_aniMan->_id, 2, 40, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_okeyCode;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
 	}
 
 	ex = new ExCommand(_lift->_id, 1, MV_LFT_OPEN, 0, 0, 0, 1, 0, 0, 0);
-	ex->_keyCode = _lift->_okeyCode;
+	ex->_param = _lift->_okeyCode;
 	ex->_excFlags |= 2;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_aniMan->_id, 1, MV_MAN_STARTD, 0, 0, 0, 1, 0, 0, 0);
-	ex->_keyCode = _aniMan->_okeyCode;
+	ex->_param = _aniMan->_okeyCode;
 	ex->_excFlags |= 2;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
-	ex->_keyCode = _aniMan->_okeyCode;
+	ex->_param = _aniMan->_okeyCode;
 	ex->_field_14 = 10;
 	ex->_x = -1;
 	ex->_y = -1;
@@ -274,7 +274,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_lift->_id, 1, MV_LFT_CLOSE, 0, 0, 0, 1, 0, 0, 0);
-	ex->_keyCode = _lift->_okeyCode;
+	ex->_param = _lift->_okeyCode;
 	ex->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex);
@@ -340,12 +340,12 @@ void FullpipeEngine::lift_walkAndGo() {
 		mq->setFlags(mq->getFlags() | 1);
 
 		ex = new ExCommand(_aniMan->_id, 2, 15, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_okeyCode;
 		ex->_excFlags |= 2;
 		mq->addExCommand(ex);
 
 		ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_okeyCode;
 		ex->_field_14 = _lift->_priority + 1;
 		ex->_x = -1;
 		ex->_y = -1;
@@ -410,7 +410,7 @@ void FullpipeEngine::lift_goAnimation() {
 
 				ExCommand *ex = new ExCommand(ANI_MAN, 1, (pre->keyCode != LiftDown ? MV_MAN_LIFTDOWN : MV_MAN_LIFTUP), 0, 0, 0, 1, 0, 0, 0);
 
-				ex->_keyCode = -1;
+				ex->_param = -1;
 				ex->_field_24 = 1;
 				ex->_excFlags |= 2;
 
@@ -418,7 +418,7 @@ void FullpipeEngine::lift_goAnimation() {
 
 				ex = new ExCommand(parentId, 17, 61, 0, 0, 0, 1, 0, 0, 0);
 
-				ex->_keyCode = buttonId;
+				ex->_param = buttonId;
 				ex->_excFlags |= 3;
 
 				mq->addExCommandToEnd(ex);
@@ -488,7 +488,7 @@ void FullpipeEngine::lift_startExitQueue() {
 
 void FullpipeEngine::lift_hoverButton(ExCommand *cmd) {
 	if (_lastLiftButton) {
-		if (!(cmd->_keyCode & 2) || _liftX != cmd->_x || _liftY != cmd->_y) {
+		if (!(cmd->_param & 2) || _liftX != cmd->_x || _liftY != cmd->_y) {
 			_lastLiftButton->_statics = _lastLiftButton->getStaticsById(lift_getButtonIdN(_lastLiftButton->_statics->_staticsId));
 			_lastLiftButton = 0;
 		}
diff --git a/engines/fullpipe/messagehandlers.cpp b/engines/fullpipe/messagehandlers.cpp
index 8067b67..dcc7919 100644
--- a/engines/fullpipe/messagehandlers.cpp
+++ b/engines/fullpipe/messagehandlers.cpp
@@ -159,9 +159,9 @@ int global_messageHandler1(ExCommand *cmd) {
 			}
 			break;
 		case 36: // keydown
-			g_fp->defHandleKeyDown(cmd->_keyCode);
+			g_fp->defHandleKeyDown(cmd->_param);
 
-			switch (cmd->_keyCode) {
+			switch (cmd->_param) {
 			case '\x1B': // ESC
 				if (g_fp->_currentScene) {
 					getGameLoaderInventory()->unselectItem(0);
@@ -221,7 +221,7 @@ int global_messageHandler1(ExCommand *cmd) {
 					}
 
 					if (newex) {
-						newex->_keyCode = g_fp->_aniMan->_okeyCode;
+						newex->_param = g_fp->_aniMan->_okeyCode;
 						newex->_excFlags |= 3;
 						newex->postMessage();
 					}
@@ -286,13 +286,13 @@ int global_messageHandler2(ExCommand *cmd) {
 		break;
 
 	case 28:
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (ani)
 			ani->_priority = cmd->_field_14;
 		break;
 
 	case 25:
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (ani) {
 			if (cmd->_field_14) {
 				ani->setFlags40(true);
@@ -305,7 +305,7 @@ int global_messageHandler2(ExCommand *cmd) {
 		break;
 
 	case 26:
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (ani) {
 			Movement *mov = ani->_movement;
 			if (mov)
@@ -364,13 +364,13 @@ int global_messageHandler3(ExCommand *cmd) {
 	case 17:
 		switch (cmd->_messageNum) {
 		case 61:
-			debugC(0, kDebugEvents, "preload: { %d, %d },", cmd->_parentId, cmd->_keyCode);
-			return g_fp->_gameLoader->preloadScene(cmd->_parentId, cmd->_keyCode);
+			debugC(0, kDebugEvents, "preload: { %d, %d },", cmd->_parentId, cmd->_param);
+			return g_fp->_gameLoader->preloadScene(cmd->_parentId, cmd->_param);
 		case 62:
-			return g_fp->_gameLoader->gotoScene(cmd->_parentId, cmd->_keyCode);
+			return g_fp->_gameLoader->gotoScene(cmd->_parentId, cmd->_param);
 		case 64:
 			if (g_fp->_currentScene && g_fp->_msgObjectId2
-					&& (!(cmd->_keyCode & 4) || g_fp->_msgObjectId2 != cmd->_field_14 || g_fp->_msgId != cmd->_field_20)) {
+					&& (!(cmd->_param & 4) || g_fp->_msgObjectId2 != cmd->_field_14 || g_fp->_msgId != cmd->_field_20)) {
 				ani = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_msgObjectId2, g_fp->_msgId);
 				if (ani) {
 					ani->_flags &= 0xFF7F;
@@ -382,11 +382,11 @@ int global_messageHandler3(ExCommand *cmd) {
 			g_fp->_msgY = 0;
 			g_fp->_msgObjectId2 = 0;
 			g_fp->_msgId = 0;
-			if ((cmd->_keyCode & 1) || (cmd->_keyCode & 2)) {
+			if ((cmd->_param & 1) || (cmd->_param & 2)) {
 				g_fp->_msgX = cmd->_x;
 				g_fp->_msgY = cmd->_y;
 			}
-			if (cmd->_keyCode & 4) {
+			if (cmd->_param & 4) {
 				g_fp->_msgObjectId2 = cmd->_field_14;
 				g_fp->_msgId = cmd->_field_20;
 			}
@@ -401,8 +401,8 @@ int global_messageHandler3(ExCommand *cmd) {
 						cmd->_messageKind = 0;
 						return result;
 					}
-					if (canInteractAny(ani2, ani, cmd->_keyCode)) {
-						handleObjectInteraction(ani2, ani, cmd->_keyCode);
+					if (canInteractAny(ani2, ani, cmd->_param)) {
+						handleObjectInteraction(ani2, ani, cmd->_param);
 						return 1;
 					}
 				} else {
@@ -413,15 +413,15 @@ int global_messageHandler3(ExCommand *cmd) {
 							cmd->_messageKind = 0;
 							return result;
 						}
-						if (!ani2 || canInteractAny(ani2, pic, cmd->_keyCode)) {
+						if (!ani2 || canInteractAny(ani2, pic, cmd->_param)) {
 							if (!ani2 || (ani2->isIdle() && !(ani2->_flags & 0x80) && !(ani2->_flags & 0x100)))
-								handleObjectInteraction(ani2, pic, cmd->_keyCode);
+								handleObjectInteraction(ani2, pic, cmd->_param);
 							return 1;
 						}
 					}
 				}
 			}
-			if (getSc2MctlCompoundBySceneId(g_fp->_currentScene->_sceneId)->_isEnabled && cmd->_keyCode <= 0) {
+			if (getSc2MctlCompoundBySceneId(g_fp->_currentScene->_sceneId)->_isEnabled && cmd->_param <= 0) {
 				if (g_fp->_msgX != cmd->_sceneClickX || g_fp->_msgY != cmd->_sceneClickY) {
 					ani = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_gameLoader->_field_FA, -1);
 					if (!ani || (ani->isIdle() && !(ani->_flags & 0x80) && !(ani->_flags & 0x100))) {
@@ -430,7 +430,7 @@ int global_messageHandler3(ExCommand *cmd) {
 						if (result) {
 							ExCommand *ex = new ExCommand(g_fp->_gameLoader->_field_FA, 17, 64, 0, 0, 0, 1, 0, 0, 0);
 
-							ex->_keyCode = 1;
+							ex->_param = 1;
 							ex->_excFlags |= 3;
 							ex->_x = cmd->_sceneClickX;
 							ex->_y = cmd->_sceneClickY;
@@ -446,7 +446,7 @@ int global_messageHandler3(ExCommand *cmd) {
 			return result;
 		}
 	case 58:
-		g_fp->setCursor(cmd->_keyCode);
+		g_fp->setCursor(cmd->_param);
 		return result;
 	case 59:
 		setInputDisabled(1);
@@ -456,7 +456,7 @@ int global_messageHandler3(ExCommand *cmd) {
 		return result;
 	case 56:
 		if (cmd->_field_2C) {
-			ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+			ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 			if (ani) {
 				getGameLoaderInventory()->addItem2(ani);
 				result = 1;
@@ -492,16 +492,16 @@ int global_messageHandler3(ExCommand *cmd) {
 				obj = g_fp->_currentScene->getStaticANIObject1ById(cmd->_x, cmd->_y);
 			else
 				obj = g_fp->_currentScene->getPictureObjectById(cmd->_x, cmd->_y);
-			handleObjectInteraction(g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode), obj, cmd->_field_20);
+			handleObjectInteraction(g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param), obj, cmd->_field_20);
 			result = 1;
 		}
 		return result;
 	case 51:
-		return startWalkTo(cmd->_parentId, cmd->_keyCode, cmd->_x, cmd->_y, cmd->_field_20);
+		return startWalkTo(cmd->_parentId, cmd->_param, cmd->_x, cmd->_y, cmd->_field_20);
 	case 52:
-		return doSomeAnimation(cmd->_parentId, cmd->_keyCode, cmd->_field_20);
+		return doSomeAnimation(cmd->_parentId, cmd->_param, cmd->_field_20);
 	case 53:
-		return doSomeAnimation2(cmd->_parentId, cmd->_keyCode);
+		return doSomeAnimation2(cmd->_parentId, cmd->_param);
 	case 63:
 		if (cmd->_objtype == kObjTypeObjstateCommand) {
 			ObjstateCommand *c = (ObjstateCommand *)cmd;
@@ -533,7 +533,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -544,7 +544,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -563,7 +563,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -574,7 +574,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -595,7 +595,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -616,7 +616,7 @@ int global_messageHandler4(ExCommand *cmd) {
 	case 19: {
 		if (!g_fp->_currentScene)
 			break;
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -634,7 +634,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -646,7 +646,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -654,7 +654,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		break;
 
 	case 27:
-		if (!g_fp->_currentScene || g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode) == 0) {
+		if (!g_fp->_currentScene || g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param) == 0) {
 			ani = g_fp->accessScene(cmd->_field_20)->getStaticANIObject1ById(cmd->_parentId, -1);
 			if (ani) {
 				ani = new StaticANIObject(ani);
@@ -665,7 +665,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		// fall through
 	case 5:
 		if (g_fp->_currentScene)
-			ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+			ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 
 		if (!ani)
 			break;
@@ -680,7 +680,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
@@ -718,7 +718,7 @@ int global_messageHandler4(ExCommand *cmd) {
 		if (!g_fp->_currentScene)
 			break;
 
-		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_keyCode);
+		ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
 		if (!ani)
 			break;
 
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index e9b2c40..68ceae3 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -68,7 +68,7 @@ bool ExCommand::load(MfcArchive &file) {
 	_sceneClickY = file.readUint32LE();
 	_field_20 = file.readUint32LE();
 	_field_24 = file.readUint32LE();
-	_keyCode = file.readUint32LE();
+	_param = file.readUint32LE();
 	_field_2C = file.readUint32LE();
 	_field_30 = file.readUint32LE();
 	_field_34 = file.readUint32LE();
@@ -135,7 +135,7 @@ void ExCommand::setf3c(int val) {
 
 void ExCommand::firef34() {
 	if (_field_34) {
-		if (_field_3C >= _keyCode) {
+		if (_field_3C >= _param) {
 			_field_34 = 0;
 
 			sendMessage();
@@ -192,7 +192,7 @@ Message::Message() {
 	_sceneClickY = 0;
 	_field_20 = 0;
 	_field_24 = 0;
-	_keyCode = 0;
+	_param = 0;
 	_field_2C = 0;
 	_field_30 = 0;
 	_field_34 = 0;
@@ -208,7 +208,7 @@ Message::Message(Message *src) {
 	_sceneClickY = src->_sceneClickY;
 	_field_20 = src->_field_20;
 	_field_24 = src->_field_24;
-	_keyCode = src->_keyCode;
+	_param = src->_param;
 	_field_2C = src->_field_2C;
 	_field_30 = src->_field_30;
 	_field_34 = src->_field_34;
@@ -224,7 +224,7 @@ Message::Message(int16 parentId, int messageKind, int x, int y, int a6, int a7,
 	_sceneClickY = sceneClickY;
 	_field_24 = a7;
 	_field_20 = a10;
-	_keyCode = 0;
+	_param = 0;
 	_field_2C = 0;
 	_field_30 = 0;
 	_field_34 = 0;
@@ -502,7 +502,7 @@ bool MessageQueue::checkGlobalExCommandList1() {
 			if (ex1->_messageKind != 1 && ex1->_messageKind != 20 && ex1->_messageKind != 5 && ex1->_messageKind != 27)
 				continue;
 
-			if (ex1->_keyCode != ex->_keyCode && ex1->_keyCode != -1 && ex->_keyCode != -1)
+			if (ex1->_param != ex->_param && ex1->_param != -1 && ex->_param != -1)
 				continue;
 
 			MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(ex1->_parId);
@@ -533,7 +533,7 @@ bool MessageQueue::checkGlobalExCommandList2() {
 				continue;
 			}
 
-			if (ex1->_keyCode != ex->_keyCode && ex1->_keyCode != -1 && ex->_keyCode != -1) {
+			if (ex1->_param != ex->_param && ex1->_param != -1 && ex->_param != -1) {
 				it++;
 				continue;
 			}
@@ -579,13 +579,13 @@ void MessageQueue::finish() {
 		mq->update();
 }
 
-void MessageQueue::replaceKeyCode(int key1, int key2) {
+void MessageQueue::setParamInt(int key1, int key2) {
 	for (uint i = 0; i < getCount(); i++) {
 		ExCommand *ex = getExCommandByIndex(i);
 		int k = ex->_messageKind;
 		if ((k == 1 || k == 20 || k == 5 || k == 6 || k == 2 || k == 18 || k == 19 || k == 22 || k == 55)
-					&& ex->_keyCode == key1)
-			ex->_keyCode = key2;
+					&& ex->_param == key1)
+			ex->_param = key2;
 	}
 }
 
@@ -617,9 +617,9 @@ void MessageQueue::changeParam28ForObjectId(int objId, int oldParam28, int newPa
 		int k = ex->_messageKind;
 
 		if ((k == 1 || k == 20 || k == 5 || k == 6 || k == 2 || k == 18 || k == 19 || k == 22 || k == 55)
-			 && ex->_keyCode == oldParam28
+			 && ex->_param == oldParam28
 			 && ex->_parentId == objId)
-			ex->_keyCode = newParam28;
+			ex->_param = newParam28;
 	}
 }
 
@@ -964,7 +964,7 @@ bool chainObjQueue(StaticANIObject *obj, int queueId, int flags) {
 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);
 
-	ex->_keyCode = keyCode;
+	ex->_param = keyCode;
 	ex->_excFlags |= 3;
 	ex->_x = x;
 	ex->_y = y;
diff --git a/engines/fullpipe/messages.h b/engines/fullpipe/messages.h
index 67fbb2a..b99b842 100644
--- a/engines/fullpipe/messages.h
+++ b/engines/fullpipe/messages.h
@@ -42,7 +42,7 @@ class Message : public CObject {
 	int _sceneClickY;
 	int _field_20;
 	int _field_24;
-	int _keyCode;
+	int _param;
 	int _field_2C;
 	int _field_30;
 	int _field_34;
@@ -144,7 +144,7 @@ class MessageQueue : public CObject {
 
 	void mergeQueue(MessageQueue *mq);
 
-	void replaceKeyCode(int key1, int key2);
+	void setParamInt(int key1, int key2);
 
 	bool chain(StaticANIObject *ani);
 	void update();
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 898f4c5..27503d4 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -69,7 +69,7 @@ bool ModalIntro::handleMessage(ExCommand *message) {
 	if (message->_messageNum != 36)
 		return false;
 
-	if (message->_keyCode != 13 && message->_keyCode != 27 && message->_keyCode != 32)
+	if (message->_param != 13 && message->_param != 27 && message->_param != 32)
 		return false;
 
 	if (_stillRunning) {
@@ -356,7 +356,7 @@ bool ModalMap::handleMessage(ExCommand *cmd) {
 		return false;
 
 	case 36:
-		if (cmd->_keyCode != 9 && cmd->_keyCode != 27)
+		if (cmd->_param != 9 && cmd->_param != 27)
 			return false;
 
 		break;
@@ -618,7 +618,7 @@ void ModalFinal::unloadScenes() {
 }
 
 bool ModalFinal::handleMessage(ExCommand *cmd) {
-	if (cmd->_messageKind == 17 && cmd->_messageNum == 36 && cmd->_keyCode == 27) {
+	if (cmd->_messageKind == 17 && cmd->_messageNum == 36 && cmd->_param == 27) {
 		g_fp->_modalObject = new ModalMainMenu();
 		g_fp->_modalObject->_parentObj = this;
 
@@ -691,7 +691,7 @@ ModalCredits::~ModalCredits() {
 }
 
 bool ModalCredits::handleMessage(ExCommand *cmd) {
-	if (cmd->_messageKind == 17 && cmd->_messageNum == 36 && cmd->_keyCode == 27) {
+	if (cmd->_messageKind == 17 && cmd->_messageNum == 36 && cmd->_param == 27) {
 		_fadeIn = false;
 
 		return true;
@@ -892,10 +892,10 @@ bool ModalMainMenu::handleMessage(ExCommand *message) {
 	if (message->_messageNum != 36)
 		return false;
 
-	if (message->_keyCode == 27)
+	if (message->_param == 27)
 		_hoverAreaId = PIC_MNU_CONTINUE_L;
 	else
-		enableDebugMenu(message->_keyCode);
+		enableDebugMenu(message->_param);
 
 	return false;
 }
@@ -1397,7 +1397,7 @@ bool ModalQuery::handleMessage(ExCommand *cmd) {
 
 			if (_cancelBtn->isPointInside(g_fp->_mouseScreenPos.x, g_fp->_mouseScreenPos.y))
 				_queryResult = 0;
-		} else if (cmd->_messageNum == 36 && cmd->_keyCode == 27) {
+		} else if (cmd->_messageNum == 36 && cmd->_param == 27) {
 			_queryResult = 0;
 
 			return false;
@@ -1738,7 +1738,7 @@ bool ModalSaveGame::handleMessage(ExCommand *cmd) {
 	if (cmd->_messageNum == 29)
 		processMouse(cmd->_x, cmd->_y);
 	else if (cmd->_messageNum == 36)
-		processKey(cmd->_keyCode);
+		processKey(cmd->_param);
 
 	return false;
 }
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 6f41e94..a84baa6 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -225,7 +225,7 @@ MessageQueue *MctlCompound::startMove(StaticANIObject *ani, int sourceX, int sou
 
 	ex->_excFlags |= 2;
 	ex->_field_20 = fuzzyMatch;
-	ex->_keyCode = ani->_okeyCode;
+	ex->_param = ani->_okeyCode;
 
 	mq->addExCommandToEnd(ex);
 
@@ -293,7 +293,7 @@ MessageQueue *MctlCompound::makeQueue(StaticANIObject *subj, int xpos, int ypos,
 		ex = new ExCommand(subj->_id, 51, 0, xpos, ypos, 0, 1, 0, 0, 0);
 
 		ex->_field_20 = fuzzyMatch;
-		ex->_keyCode = subj->_okeyCode;
+		ex->_param = subj->_okeyCode;
 		ex->_excFlags |= 2;
 
 		mq->addExCommandToEnd(ex);
@@ -542,7 +542,7 @@ MessageQueue *MctlLadder::makeQueue(StaticANIObject *ani, int xpos, int ypos, in
 		mq = _aniHandler.makeRunQueue(&mkQueue);
 
 		ex = new ExCommand(ani->_id, 1, _ladmovements[pos]->movVars->varUpStop, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		ex->_excFlags |= 2;
 
 		mq->insertExCommandAt(0, ex);
@@ -608,7 +608,7 @@ MessageQueue *MctlLadder::makeQueue(StaticANIObject *ani, int xpos, int ypos, in
 		mq = _aniHandler.makeRunQueue(&mkQueue);
 
 		ex = new ExCommand(ani->_id, 1, _ladmovements[pos]->movVars->varDownStop, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		ex->_excFlags |= 2;
 
 		mq->insertExCommandAt(0, ex);
@@ -950,13 +950,13 @@ MessageQueue *MovGraph::startMove(StaticANIObject *ani, int xpos, int ypos, int
 			mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 
 			ex = new ExCommand(ani->_id, 21, 0, 0, 0, 0, 1, 0, 0, 0);
-			ex->_keyCode = ani->_okeyCode;
+			ex->_param = ani->_okeyCode;
 			ex->_field_3C = 1;
 			ex->_field_24 = 0;
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(ani->_id, 51, 0, xpos, ypos, 0, 1, 0, 0, 0);
-			ex->_keyCode = ani->_okeyCode;
+			ex->_param = ani->_okeyCode;
 			ex->_field_3C = 1;
 			ex->_field_24 = 0;
 			ex->_field_20 = fuzzyMatch;
@@ -1998,7 +1998,7 @@ MessageQueue *MctlGraph::makeWholeQueue(MctlMQ *mctlMQ) {
 				ExCommand *ex = new ExCommand(_items2[mctlMQ->index]->_objectId, 1, mg2i->_movementId, 0, 0, 0, 1, 0, 0, 0);
 
 				ex->_excFlags |= 2;
-				ex->_keyCode = _items2[mctlMQ->index]->_obj->_okeyCode;
+				ex->_param = _items2[mctlMQ->index]->_obj->_okeyCode;
 				ex->_field_24 = 1;
 				ex->_field_14 = -1;
 				mq->addExCommandToEnd(ex);
@@ -2241,21 +2241,21 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
 			ExCommand *ex = new ExCommand(picAniInfo.objectId, 1, _items2[idx]->_subItems[idxsub]._walk[idxwalk]._movementId, 0, 0, 0, 1, 0, 0, 0);
 
 			ex->_field_24 = 1;
-			ex->_keyCode = picAniInfo.field_8;
+			ex->_param = picAniInfo.field_8;
 			ex->_excFlags |= 2;
 
 			mq->addExCommandToEnd(ex);
 		} else {
 			ExCommand *ex = new ExCommand(picAniInfo.objectId, 22, obj->_statics->_staticsId, 0, 0, 0, 1, 0, 0, 0);
 
-			ex->_keyCode = picAniInfo.field_8;
+			ex->_param = picAniInfo.field_8;
 			ex->_excFlags |= 3;
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(picAniInfo.objectId, 5, -1, obj->_ox, obj->_oy, 0, 1, 0, 0, 0);
 
 			ex->_field_14 = -1;
-			ex->_keyCode = picAniInfo.field_8;
+			ex->_param = picAniInfo.field_8;
 			ex->_excFlags |= 3;
 			mq->addExCommandToEnd(ex);
 		}
@@ -2378,13 +2378,13 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
 			} else {
 				ex = new ExCommand(picAniInfo.objectId, 5, ex->_messageNum, obj->_ox, obj->_oy, 0, 1, 0, 0, 0);
 				ex->_field_14 = -1;
-				ex->_keyCode = picAniInfo.field_8;
+				ex->_param = picAniInfo.field_8;
 				ex->_excFlags |= 2;
 				mq->addExCommand(ex);
 
 				ex = new ExCommand(picAniInfo.objectId, 22, _items2[idx]->_subItems[idxsub]._staticsId1, 0, 0, 0, 1, 0, 0, 0);
 
-				ex->_keyCode = picAniInfo.field_8;
+				ex->_param = picAniInfo.field_8;
 				ex->_excFlags |= 3;
 				mq->addExCommand(ex);
 			}
@@ -2599,7 +2599,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 
 		ex->_field_14 = info->distance1;
 
-		ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_okeyCode;
 		ex->_field_24 = 1;
 		ex->_excFlags |= 2;
 	} else {
@@ -2617,7 +2617,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 
 		ex->_field_14 = info->distance1;
 
-		ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_okeyCode;
 		ex->_field_24 = 1;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
@@ -2631,7 +2631,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  -1);
 		ex->_parId = mq->_id;
-		ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_okeyCode;
 	}
 
 	mq->addExCommandToEnd(ex);
@@ -2653,7 +2653,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  par);
 		ex->_parId = mq->_id;
-		ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_okeyCode;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -2667,7 +2667,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  -1);
 		ex->_parId = mq->_id;
-		ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_okeyCode;
 
 		mq->addExCommandToEnd(ex);
 	}
@@ -2675,7 +2675,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 	ex = new ExCommand(_items2[info->index]->_objectId, 5, -1, info->pt2.x, info->pt2.y, 0, 1, 0, 0, 0);
 	ex->_field_14 = info->distance2;
 
-	ex->_keyCode = _items2[info->index]->_obj->_okeyCode;
+	ex->_param = _items2[info->index]->_obj->_okeyCode;
 	ex->_field_24 = 0;
 	ex->_excFlags |= 2;
 
diff --git a/engines/fullpipe/scenes/scene03.cpp b/engines/fullpipe/scenes/scene03.cpp
index 9c2d5e7..25b48de 100644
--- a/engines/fullpipe/scenes/scene03.cpp
+++ b/engines/fullpipe/scenes/scene03.cpp
@@ -292,7 +292,7 @@ int sceneHandler03(ExCommand *ex) {
 					if (g_vars->scene03_domino->_flags & 4)
 						if (g_fp->_aniMan->isIdle())
 							if (!(g_fp->_aniMan->_flags & 0x100) && g_fp->_msgObjectId2 != g_vars->scene03_domino->_id) {
-								handleObjectInteraction(g_fp->_aniMan, g_vars->scene03_domino, ex->_keyCode);
+								handleObjectInteraction(g_fp->_aniMan, g_vars->scene03_domino, ex->_param);
 								ex->_messageKind = 0;
 
 								return 0;
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index cb590f1..dcb737a 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -303,14 +303,14 @@ void sceneHandler04_walkClimbLadder(ExCommand *ex) {
 
 	ExCommand *ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_TOLADDER, 0, 0, 0, 1, 0, 0, 0);
 
-	ex1->_keyCode = g_fp->_aniMan->_okeyCode;
+	ex1->_param = g_fp->_aniMan->_okeyCode;
 	ex1->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex1);
 
 	ExCommand *ex2 = new ExCommand(ANI_MAN, 1, MV_MAN_STOPLADDER, 0, 0, 0, 1, 0, 0, 0);
 
-	ex2->_keyCode = g_fp->_aniMan->_okeyCode;
+	ex2->_param = g_fp->_aniMan->_okeyCode;
 	ex2->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex2);
@@ -502,13 +502,13 @@ void sceneHandler04_gotoLadder(ExCommand *ex) {
 		ExCommand *ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_TOLADDER, 0, 0, 0, 1, 0, 0, 0);
 		ex1->_excFlags = 2;
 		ex1->_field_24 = 1;
-		ex1->_keyCode = -1;
+		ex1->_param = -1;
 		mq->addExCommandToEnd(ex1);
 
 		ExCommand *ex2 = new ExCommand(ANI_MAN, 1, MV_MAN_STOPLADDER, 0, 0, 0, 1, 0, 0, 0);
 		ex2->_excFlags = 2;
 		ex2->_field_24 = 1;
-		ex2->_keyCode = -1;
+		ex2->_param = -1;
 		mq->addExCommandToEnd(ex2);
 
 		ExCommand *ex3 = new ExCommand(g_fp->_aniMan->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
@@ -589,29 +589,29 @@ MessageQueue *sceneHandler04_kozFly3(StaticANIObject *ani, double phase) {
 	if (mq) {
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 5; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_keyCode = ani->_okeyCode;
+			ex->_param = ani->_okeyCode;
 			mq->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -657,29 +657,29 @@ MessageQueue *sceneHandler04_kozFly5(StaticANIObject *ani, double phase) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq1->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq1->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 5; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_keyCode = ani->_okeyCode;
+			ex->_param = ani->_okeyCode;
 			mq1->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq1->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq1->addExCommandToEnd(ex);
 	}
 
@@ -711,17 +711,17 @@ MessageQueue *sceneHandler04_kozFly6(StaticANIObject *ani) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_RAISEHEAD, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		g_vars->scene04_kozHeadRaised = true;
@@ -771,29 +771,29 @@ MessageQueue *sceneHandler04_kozFly7(StaticANIObject *ani, double phase) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 2; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_keyCode = ani->_okeyCode;
+			ex->_param = ani->_okeyCode;
 			mq->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_keyCode = ani->_okeyCode;
+		ex->_param = ani->_okeyCode;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -936,7 +936,7 @@ void sceneHandler04_walkKozyawka() {
 		g_vars->scene04_kozyawkiObjList.pop_front();
 
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_KOZAW_WALK), 0, 1);
-		mq->replaceKeyCode(-1, g_vars->scene04_walkingKozyawka->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene04_walkingKozyawka->_okeyCode);
 		mq->chain(0);
 	}
 }
@@ -1116,18 +1116,18 @@ void sceneHandler04_leaveLadder(ExCommand *ex) {
 
 					if (g_fp->_aniMan->_statics->_staticsId == ST_MAN_LADDERDOWN) {
 						ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_LOOKLADDERRV, 0, 0, 0, 1, 0, 0, 0);
-						ex1->_keyCode = g_fp->_aniMan->_okeyCode;
+						ex1->_param = g_fp->_aniMan->_okeyCode;
 						ex1->_excFlags |= 2;
 						mq->addExCommandToEnd(ex1);
 					}
 
 					ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_STARTLADDERD, 0, 0, 0, 1, 0, 0, 0);
-					ex1->_keyCode = g_fp->_aniMan->_okeyCode;
+					ex1->_param = g_fp->_aniMan->_okeyCode;
 					ex1->_excFlags |= 2;
 					mq->addExCommandToEnd(ex1);
 
 					ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_FROMLADDER, 0, 0, 0, 1, 0, 0, 0);
-					ex1->_keyCode = g_fp->_aniMan->_okeyCode;
+					ex1->_param = g_fp->_aniMan->_okeyCode;
 					ex1->_excFlags |= 2;
 					mq->addExCommandToEnd(ex1);
 
@@ -1491,10 +1491,10 @@ int sceneHandler04(ExCommand *ex) {
 				ex->_messageKind = 0;
 			} else if (g_vars->scene04_dudeOnLadder) {
 				sceneHandler04_leaveLadder(ex);
-			} else if (!ani || !canInteractAny(g_fp->_aniMan, ani, ex->_keyCode)) {
+			} else if (!ani || !canInteractAny(g_fp->_aniMan, ani, ex->_param)) {
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picid, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic,ex->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic,ex->_param)) {
 					if ((g_fp->_sceneRect.right - ex->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (ex->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0))
 						g_fp->processArcade(ex);
diff --git a/engines/fullpipe/scenes/scene05.cpp b/engines/fullpipe/scenes/scene05.cpp
index 0135c94..99a485c 100644
--- a/engines/fullpipe/scenes/scene05.cpp
+++ b/engines/fullpipe/scenes/scene05.cpp
@@ -200,7 +200,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 
 	if (g_fp->_currentScene->getStaticANIObject1ById(ANI_BIGLUK, -1)->_statics->_staticsId == ST_BLK_CLOSED) {
 		ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = TrubaLeft;
+		ex->_param = TrubaLeft;
 		ex->_excFlags |= 2;
 		ex->postMessage();
 
@@ -233,7 +233,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-			ex->_keyCode = TrubaLeft;
+			ex->_param = TrubaLeft;
 			ex->_excFlags |= 2;
 			mq->addExCommandToEnd(ex);
 
@@ -249,7 +249,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = TrubaLeft;
+		ex->_param = TrubaLeft;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
 
@@ -275,7 +275,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-			ex->_keyCode = TrubaLeft;
+			ex->_param = TrubaLeft;
 			ex->_excFlags |= 2;
 			mq->addExCommandToEnd(ex);
 
@@ -292,7 +292,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = TrubaLeft;
+		ex->_param = TrubaLeft;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
 
@@ -302,7 +302,7 @@ void sceneHandler05_testHatch(ExCommand *inex) {
 		return;
 	} else {
 		ex = new ExCommand(SC_5, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = TrubaLeft;
+		ex->_param = TrubaLeft;
 		ex->_excFlags |= 2;
 		ex->postMessage();
 
diff --git a/engines/fullpipe/scenes/scene06.cpp b/engines/fullpipe/scenes/scene06.cpp
index ac2adcd..388c1d1 100644
--- a/engines/fullpipe/scenes/scene06.cpp
+++ b/engines/fullpipe/scenes/scene06.cpp
@@ -266,7 +266,7 @@ void sceneHandler06_showNextBall() {
 
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC6_SHOWNEXTBALL), 0, 1);
 
-		mq->replaceKeyCode(-1, g_vars->scene06_currentBall->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene06_currentBall->_okeyCode);
 		mq->chain(0);
 
 		++g_vars->scene06_numBallsGiven;
@@ -412,7 +412,7 @@ void sceneHandler06_fallBall() {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC6_FALLBALL), 0, 1);
 
-	mq->replaceKeyCode(-1, g_vars->scene06_flyingBall->_okeyCode);
+	mq->setParamInt(-1, g_vars->scene06_flyingBall->_okeyCode);
 	mq->chain(0);
 
 	g_vars->scene06_balls.push_back(g_vars->scene06_flyingBall);
@@ -665,11 +665,11 @@ int sceneHandler06(ExCommand *ex) {
 				}
 			}
 
-			if (!st || !canInteractAny(g_fp->_aniMan, st, ex->_keyCode)) {
+			if (!st || !canInteractAny(g_fp->_aniMan, st, ex->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(ex->_sceneClickX, ex->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, ex->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, ex->_param)) {
 					if ((g_fp->_sceneRect.right - ex->_sceneClickX < 47
 						 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (ex->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index 4197051..313bf9d 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -318,7 +318,7 @@ void sceneHandler08_badLuck() {
 
 	ExCommand *ex = new ExCommand(g_fp->_aniMan->_id, 1, MV_MAN8_BADLUCK, 0, 0, 0, 1, 0, 0, 0);
 	ex->_excFlags |= 2;
-	ex->_keyCode = g_fp->_aniMan->_okeyCode;
+	ex->_param = g_fp->_aniMan->_okeyCode;
 	mq->addExCommandToEnd(ex);
 
 	mq->setFlags(mq->getFlags() | 1);
@@ -408,7 +408,7 @@ void sceneHandler08_checkEndArcade() {
 			ExCommand *ex = new ExCommand(SC_8, 17, 0, 0, 0, 0, 1, 0, 0, 0);
 			ex->_messageNum = 61;
 			ex->_excFlags |= 2;
-			ex->_keyCode = TrubaUp;
+			ex->_param = TrubaUp;
 
 			ex->postMessage();
 		}
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 6131499..3086cf0 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -486,7 +486,7 @@ void sceneHandler09_ballExplode(Ball *ball) {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC9_BALLEXPLODE), 0, 1);
 
-	mq->replaceKeyCode(-1, ball->ani->_okeyCode);
+	mq->setParamInt(-1, ball->ani->_okeyCode);
 
 	if (!mq->chain(ball->ani))
 		delete mq;
@@ -723,15 +723,15 @@ int sceneHandler09(ExCommand *cmd) {
 			}
 
 			if (g_vars->scene09_dudeIsOnLadder && g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY) == PIC_SC9_LADDER_R
-				&& !cmd->_keyCode && !g_fp->_aniMan->_movement) {
+				&& !cmd->_param && !g_fp->_aniMan->_movement) {
 				handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC9_LADDER_R, 0), 0);
 			}
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1) || (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0))
 						g_fp->processArcade(cmd);
 				}
diff --git a/engines/fullpipe/scenes/scene10.cpp b/engines/fullpipe/scenes/scene10.cpp
index 527c942..4732896 100644
--- a/engines/fullpipe/scenes/scene10.cpp
+++ b/engines/fullpipe/scenes/scene10.cpp
@@ -176,7 +176,7 @@ int sceneHandler10(ExCommand *ex) {
 	case 29:
 		{
 			if (g_fp->_currentScene->getPictureObjectIdAtPos(ex->_sceneClickX, ex->_sceneClickY) == PIC_SC10_LADDER) {
-				handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC10_DTRUBA, 0), ex->_keyCode);
+				handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC10_DTRUBA, 0), ex->_param);
 				ex->_messageKind = 0;
 
 				return 0;
diff --git a/engines/fullpipe/scenes/scene11.cpp b/engines/fullpipe/scenes/scene11.cpp
index cdd8e5f..6866dcf 100644
--- a/engines/fullpipe/scenes/scene11.cpp
+++ b/engines/fullpipe/scenes/scene11.cpp
@@ -407,13 +407,13 @@ void sceneHandler11_jumpHitAndWin() {
 	if (mq) {
 		g_vars->scene11_crySound = SND_11_024;
 		ExCommand *ex = new ExCommand(ANI_MAN, 2, 36, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = -1;
+		ex->_param = -1;
 		ex->_excFlags = 2;
 
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(SC_11, 17, 61, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = TrubaRight;
+		ex->_param = TrubaRight;
 		ex->_excFlags = 3;
 
 		mq->addExCommandToEnd(ex);
@@ -750,7 +750,7 @@ int sceneHandler11(ExCommand *cmd) {
 	case 29:
 		if (g_vars->scene11_swingIsSwinging) {
 			if (g_fp->_currentScene->getStaticANIObjectAtPos(g_fp->_sceneRect.left + cmd->_x, g_fp->_sceneRect.top + cmd->_y) == g_vars->scene11_swingie
-				&& cmd->_keyCode == ANI_INV_BOOT)
+				&& cmd->_param == ANI_INV_BOOT)
 				sceneHandler11_putBoot();
 		} else {
 			if (g_vars->scene11_arcadeIsOn) {
@@ -763,11 +763,11 @@ int sceneHandler11(ExCommand *cmd) {
 		if (!g_vars->scene11_arcadeIsOn) {
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/scenes/scene13.cpp b/engines/fullpipe/scenes/scene13.cpp
index 59be7a5..9908b9a 100644
--- a/engines/fullpipe/scenes/scene13.cpp
+++ b/engines/fullpipe/scenes/scene13.cpp
@@ -313,11 +313,11 @@ int sceneHandler13(ExCommand *cmd) {
 		{
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47
 						 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index 859d832..adcc0b7 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -143,13 +143,13 @@ void sceneHandler14_showBallGrandmaHit() {
 		MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 		ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_TOGMA, 0, 0, 0, 1, 0, 0, 0);
 
-		ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 		ex->_excFlags |= 2;
 		ex->_field_24 = 1;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 		ex->_excFlags |= 3;
 		mq->addExCommandToEnd(ex);
 		mq->chain(0);
@@ -185,13 +185,13 @@ void sceneHandler14_showBallMan() {
 		MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 		ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_TOGMA, 0, 0, 0, 1, 0, 0, 0);
 
-		ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 		ex->_excFlags |= 2;
 		ex->_field_24 = 1;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 		ex->_excFlags |= 3;
 		mq->addExCommandToEnd(ex);
 		mq->chain(0);
@@ -435,7 +435,7 @@ bool sceneHandler14_arcadeProcessClick(ExCommand *cmd) {
 		return 0;
 
 	if (!g_vars->scene14_grandmaIsHere) {
-		if (!cmd->_keyCode) {
+		if (!cmd->_param) {
 			if (g_vars->scene14_pink) {
 				if (g_vars->scene14_pink->_flags & 4) {
 					if (cmd->_sceneClickX < g_vars->scene14_pink->_ox + 40) {
@@ -501,13 +501,13 @@ void sceneHandler14_passToGrandma() {
 	MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 	ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_FALL, 0, 0, 0, 1, 0, 0, 0);
 
-	ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+	ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 	ex->_excFlags |= 2;
 	ex->_field_24 = 1;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-	ex->_keyCode = g_vars->scene14_flyingBall->_okeyCode;
+	ex->_param = g_vars->scene14_flyingBall->_okeyCode;
 	ex->_excFlags |= 3;
 	mq->addExCommandToEnd(ex);
 	mq->chain(0);
@@ -825,12 +825,12 @@ int sceneHandler14(ExCommand *cmd) {
 				break;
 			}
 
-			if (!sceneHandler14_arcadeProcessClick(cmd) && (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode))) {
+			if (!sceneHandler14_arcadeProcessClick(cmd) && (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param))) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/scenes/scene15.cpp b/engines/fullpipe/scenes/scene15.cpp
index efc69a5..436a043 100644
--- a/engines/fullpipe/scenes/scene15.cpp
+++ b/engines/fullpipe/scenes/scene15.cpp
@@ -162,7 +162,7 @@ int sceneHandler15(ExCommand *cmd) {
 	case 29:
 		{
 			if (g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY) == PIC_SC15_LADDER) {
-				handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC15_DTRUBA, 0), cmd->_keyCode);
+				handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC15_DTRUBA, 0), cmd->_param);
 				cmd->_messageKind = 0;
 
 				return 0;
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index 5079863..cb21f28 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -181,7 +181,7 @@ void sceneHandler16_fillMug() {
 		if (g_vars->scene16_walkingBoy) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYOUT), 0, 1);
 
-			mq->replaceKeyCode(-1, g_vars->scene16_walkingBoy->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
 			if (mq->chain(g_vars->scene16_walkingBoy))
 				return;
 		} else {
@@ -190,7 +190,7 @@ void sceneHandler16_fillMug() {
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLOUT), 0, 1);
 
-			mq->replaceKeyCode(-1, g_vars->scene16_walkingGirl->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene16_walkingGirl->_okeyCode);
 			if (mq->chain(g_vars->scene16_walkingGirl))
 				return;
 		}
@@ -208,7 +208,7 @@ void sceneHandler16_fillMug() {
 	if (g_vars->scene16_walkingBoy) {
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYOUT), 0, 1);
 
-		mq->replaceKeyCode(-1, g_vars->scene16_walkingBoy->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
 
 		ani = g_vars->scene16_walkingBoy;
 	} else {
@@ -217,7 +217,7 @@ void sceneHandler16_fillMug() {
 
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLOUT), 0, 1);
 
-		mq->replaceKeyCode(-1, g_vars->scene16_walkingGirl->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene16_walkingGirl->_okeyCode);
 		ani = g_vars->scene16_walkingGirl;
 	}
 
@@ -232,7 +232,7 @@ void sceneHandler16_startLaugh() {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLLAUGH), 0, 1);
 
-	mq->replaceKeyCode(-1, girl->_okeyCode);
+	mq->setParamInt(-1, girl->_okeyCode);
 	mq->setFlags(mq->getFlags() | 1);
 	mq->chain(0);
 
@@ -258,7 +258,7 @@ void sceneHandler16_drink() {
 
 							mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYKICK), 0, 1);
 
-							mq->replaceKeyCode(-1, g_vars->scene16_walkingBoy->_okeyCode);
+							mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
 
 							ex = new ExCommand(ANI_MAN, 34, 384, 0, 0, 0, 1, 0, 0, 0);
 							ex->_excFlags |= 3u;
@@ -361,7 +361,7 @@ void sceneHandler16_putOnWheel() {
 		if (ani->_id == ANI_BOY) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GOBOY), 0, 1);
 
-			mq->replaceKeyCode(-1, ani->_okeyCode);
+			mq->setParamInt(-1, ani->_okeyCode);
 			mq->chain(0);
 
 			g_vars->scene16_walkingBoy = ani;
@@ -370,7 +370,7 @@ void sceneHandler16_putOnWheel() {
 			if (g_fp->getObjectState(sO_Girl) == g_fp->getObjectEnumState(sO_Girl, sO_IsSwinging)) {
 				mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GOGIRL), 0, 1);
 
-				mq->replaceKeyCode(-1, ani->_okeyCode);
+				mq->setParamInt(-1, ani->_okeyCode);
 				mq->chain(0);
 
 				g_vars->scene16_walkingBoy = 0;
diff --git a/engines/fullpipe/scenes/scene17.cpp b/engines/fullpipe/scenes/scene17.cpp
index f19fd03..3ea35b7 100644
--- a/engines/fullpipe/scenes/scene17.cpp
+++ b/engines/fullpipe/scenes/scene17.cpp
@@ -211,11 +211,11 @@ int sceneHandler17(ExCommand *cmd) {
 			int pic = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
 			if (pic == PIC_SC17_RTRUBA2 || pic == PIC_SC17_RTRUBA) {
-				if (cmd->_keyCode == ANI_INV_COIN || cmd->_keyCode == ANI_INV_BOOT || cmd->_keyCode == ANI_INV_HAMMER) {
+				if (cmd->_param == ANI_INV_COIN || cmd->_param == ANI_INV_BOOT || cmd->_param == ANI_INV_HAMMER) {
 					if (g_vars->scene17_handPhase) {
 						if (g_fp->_aniMan->isIdle()) {
 							if (!(g_fp->_aniMan->_flags & 0x100)) {
-								handleObjectInteraction(g_fp->_aniMan, g_vars->scene17_hand, cmd->_keyCode);
+								handleObjectInteraction(g_fp->_aniMan, g_vars->scene17_hand, cmd->_param);
 								break;
 							}
 						}
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 5abb5a0..e6754e4 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -735,21 +735,21 @@ int sceneHandler18(ExCommand *cmd) {
 
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
 				if (pic && pic->_id == PIC_SC18_DOMIN && g_vars->scene18_domino
 					&& (g_vars->scene18_domino->_flags & 4) && g_fp->_aniMan->isIdle()) {
 					if (!(g_fp->_aniMan->_flags & 0x100) && g_fp->_msgObjectId2 != g_vars->scene18_domino->_id) {
-						handleObjectInteraction(g_fp->_aniMan, g_vars->scene18_domino, cmd->_keyCode);
+						handleObjectInteraction(g_fp->_aniMan, g_vars->scene18_domino, cmd->_param);
 						cmd->_messageKind = 0;
 
 						break;
 					}
 				}
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
@@ -883,7 +883,7 @@ int sceneHandler19(ExCommand *cmd) {
 					if (!(g_fp->_aniMan->_flags & 0x100)) {
 						PictureObject *pic = g_fp->_currentScene->getPictureObjectById(PIC_SC19_RTRUBA31, 0);
 
-						handleObjectInteraction(g_fp->_aniMan, pic, cmd->_keyCode);
+						handleObjectInteraction(g_fp->_aniMan, pic, cmd->_param);
 						break;
 					}
 				}
diff --git a/engines/fullpipe/scenes/scene21.cpp b/engines/fullpipe/scenes/scene21.cpp
index 8918515..1b232e1 100644
--- a/engines/fullpipe/scenes/scene21.cpp
+++ b/engines/fullpipe/scenes/scene21.cpp
@@ -101,12 +101,12 @@ int sceneHandler21(ExCommand *cmd) {
 	case 29:
 		{
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode) ) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param) ) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0))
 						g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/scenes/scene22.cpp b/engines/fullpipe/scenes/scene22.cpp
index 4e7c438..3af8bad 100644
--- a/engines/fullpipe/scenes/scene22.cpp
+++ b/engines/fullpipe/scenes/scene22.cpp
@@ -166,7 +166,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) {
 	int manId;
 
 	if (g_fp->_aniMan->isIdle() && !(g_fp->_aniMan->_flags & 0x100)) {
-		if (cmd->_keyCode == ANI_INV_STOOL) {
+		if (cmd->_param == ANI_INV_STOOL) {
 			if (abs(841 - g_fp->_aniMan->_ox) <= 1) {
 				if (abs(449 - g_fp->_aniMan->_oy) <= 1) {
 					chainQueue(QU_SC22_PUTSTOOL, 1);
@@ -178,7 +178,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) {
 			goto LABEL_13;
 		}
 
-		if (cmd->_keyCode == ANI_INV_BOX) {
+		if (cmd->_param == ANI_INV_BOX) {
 			ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_TABURETTE, -1);
 			if (!ani || !(ani->_flags & 4)) {
 				if (abs(841 - g_fp->_aniMan->_ox) <= 1) {
@@ -202,7 +202,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) {
 				return;
 			}
 		} else {
-			if (cmd->_keyCode)
+			if (cmd->_param)
 				return;
 
 			if (g_vars->scene22_dudeIsOnStool) {
@@ -342,11 +342,11 @@ int sceneHandler22(ExCommand *cmd) {
 			}
 
 			if (!g_vars->scene22_dudeIsOnStool) {
-				if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+				if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 					int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 					PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-					if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+					if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 						if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 							|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 							g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/scenes/scene23.cpp b/engines/fullpipe/scenes/scene23.cpp
index 7f7715b..2bb928f 100644
--- a/engines/fullpipe/scenes/scene23.cpp
+++ b/engines/fullpipe/scenes/scene23.cpp
@@ -537,7 +537,7 @@ int sceneHandler23(ExCommand *cmd) {
 			}
 
 			if (ani && ani->_id == ANI_HANDLE23) {
-				handleObjectInteraction(g_fp->_aniMan, ani, cmd->_keyCode);
+				handleObjectInteraction(g_fp->_aniMan, ani, cmd->_param);
 				cmd->_messageKind = 0;
 			} else {
 				sceneHandler23_fromStool(cmd);
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp
index a5fd53a..bb05e2f 100644
--- a/engines/fullpipe/scenes/scene25.cpp
+++ b/engines/fullpipe/scenes/scene25.cpp
@@ -234,7 +234,7 @@ void sceneHandler25_animateBearders() {
 
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED), 0, 1);
 
-		mq->replaceKeyCode(-1, g_vars->scene25_bearders[0]->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene25_bearders[0]->_okeyCode);
 		mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 		mq->chain(0);
 
@@ -243,14 +243,14 @@ void sceneHandler25_animateBearders() {
 		if (g_fp->_rnd->getRandomNumber(32767) < 0x1FFF) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED2), 0, 1);
 
-			mq->replaceKeyCode(-1, g_vars->scene25_bearders[1]->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene25_bearders[1]->_okeyCode);
 			mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 			mq->chain(0);
 
 			if (g_fp->_rnd->getRandomNumber(32767) < 8191) {
 				mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED3), 0, 1);
 
-				mq->replaceKeyCode(-1, g_vars->scene25_bearders[2]->_okeyCode);
+				mq->setParamInt(-1, g_vars->scene25_bearders[2]->_okeyCode);
 				mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 				mq->chain(0);
 			}
@@ -522,7 +522,7 @@ void sceneHandler25_walkOnLadder(StaticANIObject *ani, Common::Point *pnt, Messa
 bool sceneHandler25_isOnLadder(ExCommand *cmd) {
 	if ((g_fp->_aniMan->_movement && g_fp->_aniMan->_movement->_id == MV_MAN_GOLADDERDOWN)
 		|| g_fp->_aniMan->_statics->_staticsId == ST_MAN_GOLADDERD) {
-		Interaction *inter = getGameLoaderInteractionController()->getInteractionByObjectIds(PIC_SC25_LADDERDOWN, ANI_MAN, cmd->_keyCode);
+		Interaction *inter = getGameLoaderInteractionController()->getInteractionByObjectIds(PIC_SC25_LADDERDOWN, ANI_MAN, cmd->_param);
 
 		if (!inter)
 			return 0;
@@ -656,20 +656,20 @@ int sceneHandler25(ExCommand *cmd) {
 						if (!(g_fp->_aniMan->_flags & 0x100)) {
 							if (ani->_id == ANI_WATER25) {
 								if (g_vars->scene25_dudeIsOnBoard) {
-									if (cmd->_keyCode == ANI_INV_LOPAT)
+									if (cmd->_param == ANI_INV_LOPAT)
 										sceneHandler25_rowShovel();
 
-									if (!cmd->_keyCode)
+									if (!cmd->_param)
 										sceneHandler25_rowHand();
 								} else {
-									if (cmd->_keyCode == ANI_INV_BOARD)
+									if (cmd->_param == ANI_INV_BOARD)
 										sceneHandler25_putBoard();
 
-									if (!cmd->_keyCode)
+									if (!cmd->_param)
 										sceneHandler25_tryWater();
 								}
 							} else if (ani->_id == ANI_BOARD25) {
-								sceneHandler25_tryRow(cmd->_keyCode);
+								sceneHandler25_tryRow(cmd->_param);
 								break;
 							}
 							break;
@@ -685,31 +685,31 @@ int sceneHandler25(ExCommand *cmd) {
 				break;
 
 			if (g_vars->scene25_dudeIsOnBoard) {
-				if (picId == PIC_SC25_RTRUBA && !cmd->_keyCode) {
+				if (picId == PIC_SC25_RTRUBA && !cmd->_param) {
 					sceneHandler25_enterTruba();
 					break;
 				}
 			} else {
 				if (picId != PIC_SC25_RTRUBA) {
-					if (picId == PIC_SC25_LADDERUP && !cmd->_keyCode)
+					if (picId == PIC_SC25_LADDERUP && !cmd->_param)
 						sceneHandler25_ladderUp();
 					break;
 				}
 
-				if (!cmd->_keyCode) {
+				if (!cmd->_param) {
 					sceneHandler25_backToPipe();
 					break;
 				}
 			}
 			if (g_vars->scene25_dudeIsOnBoard) {
-				if (picId != PIC_SC25_LADDERUP || cmd->_keyCode)
+				if (picId != PIC_SC25_LADDERUP || cmd->_param)
 					break;
 
 				sceneHandler25_toLadder();
 				break;
 			}
 
-			if (picId == PIC_SC25_LADDERUP && !cmd->_keyCode)
+			if (picId == PIC_SC25_LADDERUP && !cmd->_param)
 				sceneHandler25_ladderUp();
 
 			break;
diff --git a/engines/fullpipe/scenes/scene26.cpp b/engines/fullpipe/scenes/scene26.cpp
index e8a0261..df7accc 100644
--- a/engines/fullpipe/scenes/scene26.cpp
+++ b/engines/fullpipe/scenes/scene26.cpp
@@ -263,7 +263,7 @@ void sceneHandler26_clickVent(StaticANIObject *ani, ExCommand *cmd) {
 					ExCommand *ex = new ExCommand(0, 17, MSG_SC26_CLICKVENT, 0, 0, 0, 1, 0, 0, 0);
 
 					ex->_excFlags |= 3;
-					ex->_keyCode = ani->_okeyCode;
+					ex->_param = ani->_okeyCode;
 
 					mq->addExCommandToEnd(ex);
 
@@ -309,7 +309,7 @@ int sceneHandler26(ExCommand *cmd) {
 
 	case MSG_SC26_CLICKVENT:
 		{
-			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_VENT, cmd->_keyCode);
+			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_VENT, cmd->_param);
 
 			if (ani && ani->_id == ANI_VENT)
 				sceneHandler26_clickVent(ani, cmd);
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 420629c..c8a7bae 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -191,7 +191,7 @@ void sceneHandler27_showNextBat() {
 	if (g_vars->scene27_bat) {
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC27_SHOWBET), 0, 1);
 
-		mq->replaceKeyCode(-1, g_vars->scene27_bat->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene27_bat->_okeyCode);
 		mq->chain(0);
 	}
 
diff --git a/engines/fullpipe/scenes/scene28.cpp b/engines/fullpipe/scenes/scene28.cpp
index 75ba256..f096e69 100644
--- a/engines/fullpipe/scenes/scene28.cpp
+++ b/engines/fullpipe/scenes/scene28.cpp
@@ -105,16 +105,16 @@ void sceneHandler28_trySecondaryPers() {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOR), 0, 1);
 
 			mq->getExCommandByIndex(0)->_x = g_fp->_sceneRect.left - 20;
-			mq->getExCommandByIndex(0)->_keyCode = 1;
-			mq->replaceKeyCode(-1, 1);
+			mq->getExCommandByIndex(0)->_param = 1;
+			mq->setParamInt(-1, 1);
 			mq->chain(0);
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOR), 0, 1);
 
 			mq->getExCommandByIndex(0)->_x = g_fp->_sceneRect.left - 40;
 			mq->getExCommandByIndex(0)->_y += 20;
-			mq->getExCommandByIndex(0)->_keyCode = 2;
-			mq->replaceKeyCode(-1, 2);
+			mq->getExCommandByIndex(0)->_param = 2;
+			mq->setParamInt(-1, 2);
 			mq->chain(0);
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOR), 0, 1);
@@ -124,16 +124,16 @@ void sceneHandler28_trySecondaryPers() {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOL), 0, 1);
 
 			mq->getExCommandByIndex(0)->_x = g_fp->_sceneRect.right + 20;
-			mq->getExCommandByIndex(0)->_keyCode = 1;
-			mq->replaceKeyCode(-1, 1);
+			mq->getExCommandByIndex(0)->_param = 1;
+			mq->setParamInt(-1, 1);
 			mq->chain(0);
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOL), 0, 1);
 
 			mq->getExCommandByIndex(0)->_x = g_fp->_sceneRect.right + 40;
 			mq->getExCommandByIndex(0)->_y += 20;
-			mq->getExCommandByIndex(0)->_keyCode = 2;
-			mq->replaceKeyCode(-1, 2);
+			mq->getExCommandByIndex(0)->_param = 2;
+			mq->setParamInt(-1, 2);
 			mq->chain(0);
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_BRD28_GOL), 0, 1);
@@ -143,8 +143,8 @@ void sceneHandler28_trySecondaryPers() {
 
 		mq->getExCommandByIndex(0)->_x = x;
 		mq->getExCommandByIndex(0)->_y += 40;
-		mq->getExCommandByIndex(0)->_keyCode = 3;
-		mq->replaceKeyCode(-1, 3);
+		mq->getExCommandByIndex(0)->_param = 3;
+		mq->setParamInt(-1, 3);
 		mq->chain( 0);
 
 		g_vars->scene28_beardedDirection = !g_vars->scene28_beardedDirection;
@@ -381,7 +381,7 @@ int sceneHandler28(ExCommand *cmd) {
 		break;
 
 	case MSG_SC28_CLICKLIFT:
-		sceneHandler28_clickLift(cmd->_keyCode);
+		sceneHandler28_clickLift(cmd->_param);
 		break;
 
 	case MSG_SC28_ENDLIFT1:
@@ -411,11 +411,11 @@ int sceneHandler28(ExCommand *cmd) {
 					break;
 				}
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0))
 						g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp
index 28d0696..80f82e0 100644
--- a/engines/fullpipe/scenes/scene29.cpp
+++ b/engines/fullpipe/scenes/scene29.cpp
@@ -510,7 +510,7 @@ void sceneHandler29_manHit() {
 		if (g_vars->scene29_manX <= 638) {
 			ex = new ExCommand(ANI_MAN, 1, MV_MAN29_STANDUP_NORM, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags = 2;
-			ex->_keyCode = g_fp->_aniMan->_okeyCode;
+			ex->_param = g_fp->_aniMan->_okeyCode;
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(0, 17, MSG_SC29_STOPRIDE, 0, 0, 0, 1, 0, 0, 0);
@@ -524,7 +524,7 @@ void sceneHandler29_manHit() {
 		} else {
 			ex = new ExCommand(ANI_MAN, 1, MV_MAN29_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags = 2;
-			ex->_keyCode = g_fp->_aniMan->_okeyCode;
+			ex->_param = g_fp->_aniMan->_okeyCode;
 			mq->addExCommandToEnd(ex);
 		}
 
@@ -878,7 +878,7 @@ void sceneHandler29_animBearded() {
 				if (x - g_vars->scene29_manX < 100 || !g_vars->scene29_arcadeIsOn) {
 					mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC29_BRDOUT1), 0, 1);
 
-					mq->replaceKeyCode(-1, ani->_okeyCode);
+					mq->setParamInt(-1, ani->_okeyCode);
 					mq->chain(0);
 
 					g_vars->scene29_bearders[i]->wbflag = 0;
@@ -898,7 +898,7 @@ void sceneHandler29_animBearded() {
 
 						mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC29_BRDOUT2), 0, 1);
 
-						mq->replaceKeyCode(-1, ani->_okeyCode);
+						mq->setParamInt(-1, ani->_okeyCode);
 						mq->chain(0);
 
 						g_vars->scene29_bearders[i]->wbflag = 0;
@@ -939,7 +939,7 @@ void sceneHandler29_animBearded() {
 			}
 
 			mq->getExCommandByIndex(0)->_x = newx;
-			mq->replaceKeyCode(-1, ani->_okeyCode);
+			mq->setParamInt(-1, ani->_okeyCode);
 			mq->chain(0);
 
 			g_vars->scene29_bearders[i]->wbflag = 1;
diff --git a/engines/fullpipe/scenes/scene32.cpp b/engines/fullpipe/scenes/scene32.cpp
index 05b78ef..1766d79 100644
--- a/engines/fullpipe/scenes/scene32.cpp
+++ b/engines/fullpipe/scenes/scene32.cpp
@@ -185,7 +185,7 @@ void sceneHandler32_trySit(ExCommand *cmd) {
 		ex->_parentId = ANI_MAN;
 		ex->_messageKind = 1;
 		ex->_messageNum = MV_MAN32_SITDOWN;
-		ex->_keyCode = g_fp->_aniMan->_okeyCode;
+		ex->_param = g_fp->_aniMan->_okeyCode;
 
 		g_vars->scene32_dudeIsSitting = true;
 
diff --git a/engines/fullpipe/scenes/scene33.cpp b/engines/fullpipe/scenes/scene33.cpp
index 90ea0a4..f9fdcdf 100644
--- a/engines/fullpipe/scenes/scene33.cpp
+++ b/engines/fullpipe/scenes/scene33.cpp
@@ -270,7 +270,7 @@ int sceneHandler33(ExCommand *cmd) {
 		{
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(g_fp->_sceneRect.left + cmd->_x, g_fp->_sceneRect.top + cmd->_y);
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
@@ -279,7 +279,7 @@ int sceneHandler33(ExCommand *cmd) {
 					break;
 				}
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1) || (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0))
 						g_fp->processArcade(cmd);
 				}
diff --git a/engines/fullpipe/scenes/scene34.cpp b/engines/fullpipe/scenes/scene34.cpp
index 32fb192..6b74551 100644
--- a/engines/fullpipe/scenes/scene34.cpp
+++ b/engines/fullpipe/scenes/scene34.cpp
@@ -337,7 +337,7 @@ int sceneHandler34(ExCommand *cmd) {
 		g_fp->_aniMan->changeStatics2(ST_MAN_RIGHT);
 		g_fp->_aniMan->_flags &= 0xFEFF;
 
-		getGameLoaderInteractionController()->handleInteraction(g_fp->_aniMan, g_vars->scene34_vent, cmd->_keyCode);
+		getGameLoaderInteractionController()->handleInteraction(g_fp->_aniMan, g_vars->scene34_vent, cmd->_param);
 
 		break;
 
@@ -419,8 +419,8 @@ int sceneHandler34(ExCommand *cmd) {
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(g_fp->_sceneRect.left + cmd->_x, g_fp->_sceneRect.top + cmd->_y);
 
 			if (ani) {
-				if ((ani->_id == ANI_STOOL_34 && cmd->_keyCode == ANI_INV_BOX) || (ani->_id == ANI_BOX_34 && cmd->_keyCode == ANI_INV_STOOL)) {
-					getGameLoaderInteractionController()->handleInteraction(g_fp->_aniMan, g_vars->scene34_vent, cmd->_keyCode);
+				if ((ani->_id == ANI_STOOL_34 && cmd->_param == ANI_INV_BOX) || (ani->_id == ANI_BOX_34 && cmd->_param == ANI_INV_STOOL)) {
+					getGameLoaderInteractionController()->handleInteraction(g_fp->_aniMan, g_vars->scene34_vent, cmd->_param);
 
 					cmd->_messageKind = 0;
 				}
@@ -434,11 +434,11 @@ int sceneHandler34(ExCommand *cmd) {
 				}
 			}
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1) || (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
 						break;
diff --git a/engines/fullpipe/scenes/scene35.cpp b/engines/fullpipe/scenes/scene35.cpp
index 53381fd..7a290ad 100644
--- a/engines/fullpipe/scenes/scene35.cpp
+++ b/engines/fullpipe/scenes/scene35.cpp
@@ -213,11 +213,11 @@ int sceneHandler35(ExCommand *cmd) {
 					break;
 				}
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1) || (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
 						break;
diff --git a/engines/fullpipe/scenes/scene36.cpp b/engines/fullpipe/scenes/scene36.cpp
index 44099fa..c93fca2 100644
--- a/engines/fullpipe/scenes/scene36.cpp
+++ b/engines/fullpipe/scenes/scene36.cpp
@@ -64,7 +64,7 @@ int sceneHandler36(ExCommand *cmd) {
 				if (g_vars->scene36_scissors->_flags & 4)
 					if (g_fp->_aniMan->isIdle())
 						if (!(g_fp->_aniMan->_flags & 0x100) && g_fp->_msgObjectId2 != g_vars->scene36_scissors->_id ) {
-							handleObjectInteraction(g_fp->_aniMan, g_vars->scene36_scissors, cmd->_keyCode);
+							handleObjectInteraction(g_fp->_aniMan, g_vars->scene36_scissors, cmd->_param);
 
 							cmd->_messageKind = 0;
 						}
diff --git a/engines/fullpipe/scenes/scene37.cpp b/engines/fullpipe/scenes/scene37.cpp
index 324d3ac..0e5685f 100644
--- a/engines/fullpipe/scenes/scene37.cpp
+++ b/engines/fullpipe/scenes/scene37.cpp
@@ -234,11 +234,11 @@ int sceneHandler37(ExCommand *cmd) {
 		{
 			StaticANIObject *ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 
-			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) {
+			if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) {
 				int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 				PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0);
 
-				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) {
+				if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) {
 					if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1)
 						|| (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) {
 						g_fp->processArcade(cmd);
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index 635ac0a..15427c6 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -489,7 +489,7 @@ void global_messageHandler_handleSound(ExCommand *cmd) {
 			snd->setPanAndVolume(g_fp->_sfxVolume, 0);
 
 		if (snd->getVolume() > -3500)
-			snd->play(cmd->_keyCode);
+			snd->play(cmd->_param);
 	} else if (cmd->_field_14 & 2) {
 		snd->stop();
 	}
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index ec834a9..39bd296 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -824,7 +824,7 @@ void StaticANIObject::update(int counterdiff) {
 					newex->_excFlags |= 2;
 					if (newex->_messageKind == 17) {
 						newex->_parentId = _id;
-						newex->_keyCode = _okeyCode;
+						newex->_param = _okeyCode;
 					}
 					newex->sendMessage();
 
@@ -836,7 +836,7 @@ void StaticANIObject::update(int counterdiff) {
 			if (dyn->_initialCountdown == dyn->_countdown && dyn->_field_68 != 0) {
 				newex = new ExCommand(_id, 17, dyn->_field_68, 0, 0, 0, 1, 0, 0, 0);
 				newex->_excFlags = 2;
-				newex->_keyCode = _okeyCode;
+				newex->_param = _okeyCode;
 				newex->sendMessage();
 
 				if (!_movement)
@@ -1006,7 +1006,7 @@ L12:
 		_movement = 0;
 
 		ExCommand *ex = new ExCommand(_id, 17, 24, 0, 0, 0, 1, 0, 0, 0);
-		ex->_keyCode = _okeyCode;
+		ex->_param = _okeyCode;
 		ex->_excFlags = 2;
 		ex->postMessage();
 	}
@@ -1274,7 +1274,7 @@ void StaticANIObject::startAnimSteps(int movementId, int messageQueueId, int x,
 
 	ExCommand *ex = new ExCommand(_id, 17, 23, 0, 0, movementId, 1, 0, 0, 0);
 
-	ex->_keyCode = _okeyCode;
+	ex->_param = _okeyCode;
 	ex->_excFlags = 2;
 	ex->postMessage();
 }
@@ -1386,7 +1386,7 @@ bool StaticANIObject::startAnim(int movementId, int messageQueueId, int dynPhase
 
 	ExCommand *newex = new ExCommand(_id, 17, 23, 0, 0, movementId, 1, 0, 0, 0);
 
-	newex->_keyCode = _okeyCode;
+	newex->_param = _okeyCode;
 	newex->_excFlags = 2;
 
 	newex->postMessage();


Commit: 9b21c5de2ecc884e49a12940c928c16a2d2f6c5b
    https://github.com/scummvm/scummvm/commit/9b21c5de2ecc884e49a12940c928c16a2d2f6c5b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-04T23:57:44+02:00

Commit Message:
FULLPIPE: Signed read for delay in PreloadItems

Changed paths:
    engines/fullpipe/gameloader.cpp



diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index a013b1d..cd148a8 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -690,7 +690,7 @@ bool PreloadItems::load(MfcArchive &file) {
 		t->preloadId1 = file.readUint32LE();
 		t->preloadId2 = file.readUint32LE();
 		t->sceneId = file.readUint32LE();
-		t->keyCode = file.readUint32LE();
+		t->keyCode = file.readSint32LE();
 
 		push_back(t);
 	}


Commit: 7e07e0196314245420f0430ee657e791c43944a2
    https://github.com/scummvm/scummvm/commit/7e07e0196314245420f0430ee657e791c43944a2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-05T00:03:14+02:00

Commit Message:
FULLPIPE: Renames in PreloadItem

Changed paths:
    engines/fullpipe/gameloader.cpp
    engines/fullpipe/gameloader.h
    engines/fullpipe/lift.cpp
    engines/fullpipe/scenes.cpp



diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index cd148a8..e49e56d 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -307,7 +307,7 @@ bool preloadCallback(PreloadItem &pre, int flag) {
 				g_fp->_scene3 = 0;
 			}
 		} else {
-			scene19_setMovements(g_fp->accessScene(pre.preloadId1), pre.keyCode);
+			scene19_setMovements(g_fp->accessScene(pre.preloadId1), pre.param);
 
 			g_vars->scene18_inScene18p1 = true;
 
@@ -318,9 +318,9 @@ bool preloadCallback(PreloadItem &pre, int flag) {
 			}
 		}
 
-		if (((pre.sceneId == SC_19 && pre.keyCode == TrubaRight) || (pre.sceneId == SC_18 && pre.keyCode == TrubaRight)) && !pre.preloadId2) {
+		if (((pre.sceneId == SC_19 && pre.param == TrubaRight) || (pre.sceneId == SC_18 && pre.param == TrubaRight)) && !pre.preloadId2) {
 			pre.sceneId = SC_18;
-			pre.keyCode = TrubaLeft;
+			pre.param = TrubaLeft;
 		}
 
 		if (!g_fp->_loaderScene) {
@@ -398,7 +398,7 @@ bool GameLoader::preloadScene(int sceneId, int entranceId) {
 
 	ExCommand *ex = new ExCommand(_preloadItems[idx]->sceneId, 17, 62, 0, 0, 0, 1, 0, 0, 0);
 	ex->_excFlags = 2;
-	ex->_param = _preloadItems[idx]->keyCode;
+	ex->_param = _preloadItems[idx]->param;
 
 	_preloadSceneId = 0;
 	_preloadEntranceId = 0;
@@ -690,7 +690,7 @@ bool PreloadItems::load(MfcArchive &file) {
 		t->preloadId1 = file.readUint32LE();
 		t->preloadId2 = file.readUint32LE();
 		t->sceneId = file.readUint32LE();
-		t->keyCode = file.readSint32LE();
+		t->param = file.readSint32LE();
 
 		push_back(t);
 	}
diff --git a/engines/fullpipe/gameloader.h b/engines/fullpipe/gameloader.h
index 682d1aa..bb9b934 100644
--- a/engines/fullpipe/gameloader.h
+++ b/engines/fullpipe/gameloader.h
@@ -64,7 +64,7 @@ struct PreloadItem {
 	int preloadId1;
 	int preloadId2;
 	int sceneId;
-	int keyCode;
+	int param;
 };
 
 bool preloadCallback(PreloadItem &pre, int flag);
diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp
index 32a4532..c64e7b6 100644
--- a/engines/fullpipe/lift.cpp
+++ b/engines/fullpipe/lift.cpp
@@ -408,7 +408,7 @@ void FullpipeEngine::lift_goAnimation() {
 			if (pre->preloadId2 == buttonId && pre->preloadId1 == _currentScene->_sceneId) {
 				MessageQueue *mq = new MessageQueue(_globalMessageQueueList->compact());
 
-				ExCommand *ex = new ExCommand(ANI_MAN, 1, (pre->keyCode != LiftDown ? MV_MAN_LIFTDOWN : MV_MAN_LIFTUP), 0, 0, 0, 1, 0, 0, 0);
+				ExCommand *ex = new ExCommand(ANI_MAN, 1, (pre->param != LiftDown ? MV_MAN_LIFTDOWN : MV_MAN_LIFTUP), 0, 0, 0, 1, 0, 0, 0);
 
 				ex->_param = -1;
 				ex->_field_24 = 1;
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 5a63801..c7c303f 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -1124,17 +1124,17 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_1:
 		updateMapPiece(PIC_MAP_S01, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_P01, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_A13, 1);
 		break;
 
 	case SC_2:
 		updateMapPiece(PIC_MAP_S02, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_P01, 1);
 
 		break;
@@ -1146,7 +1146,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_4:
 		updateMapPiece(PIC_MAP_S04, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_P04, 1);
 
 		break;
@@ -1154,11 +1154,11 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_5:
 		updateMapPiece(PIC_MAP_S05, 1);
 
-		if (pre->keyCode == TrubaLeft) {
+		if (pre->param == TrubaLeft) {
 			updateMapPiece(PIC_MAP_P04, 1);
 		}
 
-		if (pre->keyCode == TrubaUp) {
+		if (pre->param == TrubaUp) {
 			updateMapPiece(PIC_MAP_P05, 1);
 			updateMapPiece(PIC_MAP_A11, 1);
 		}
@@ -1168,7 +1168,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_6:
 		updateMapPiece(PIC_MAP_S06, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_A12, 1);
 
 		break;
@@ -1176,7 +1176,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_7:
 		updateMapPiece(PIC_MAP_S07, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_P18, 1);
 
 		break;
@@ -1184,10 +1184,10 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_8:
 		updateMapPiece(PIC_MAP_S08, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_P11, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_P18, 1);
 
 		return;
@@ -1195,7 +1195,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_9:
 		updateMapPiece(PIC_MAP_S09, 1);
 
-		if (pre->keyCode == TrubaDown)
+		if (pre->param == TrubaDown)
 			updateMapPiece(PIC_MAP_P11, 1);
 
 		return;
@@ -1203,7 +1203,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_10:
 		updateMapPiece(PIC_MAP_S10, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_P02, 1);
 
 		break;
@@ -1211,7 +1211,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_11:
 		updateMapPiece(PIC_MAP_S11, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_P02, 1);
 
 		break;
@@ -1223,7 +1223,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_13:
 		updateMapPiece(PIC_MAP_S13, 1);
 
-		if (pre->keyCode == TrubaUp) {
+		if (pre->param == TrubaUp) {
 			updateMapPiece(PIC_MAP_P06, 1);
 			updateMapPiece(PIC_MAP_A10, 1);
 		}
@@ -1236,7 +1236,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_15:
 		updateMapPiece(PIC_MAP_S15, 1);
 
-		if (pre->keyCode == TrubaUp) {
+		if (pre->param == TrubaUp) {
 			updateMapPiece(PIC_MAP_P08, 1);
 			updateMapPiece(PIC_MAP_A14, 1);
 		}
@@ -1254,7 +1254,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_18:
 		updateMapPiece(PIC_MAP_S1819, 1);
 
-		if (pre->keyCode == PIC_SC18_RTRUBA)
+		if (pre->param == PIC_SC18_RTRUBA)
 			updateMapPiece(PIC_MAP_P14, 1);
 
 		break;
@@ -1262,7 +1262,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_19:
 		updateMapPiece(PIC_MAP_S1819, 1);
 
-		if (pre->keyCode == PIC_SC19_RTRUBA3) {
+		if (pre->param == PIC_SC19_RTRUBA3) {
 			updateMapPiece(PIC_MAP_P15, 1);
 			updateMapPiece(PIC_MAP_A09, 1);
 		}
@@ -1276,12 +1276,12 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_21:
 		updateMapPiece(PIC_MAP_S21, 1);
 
-		if (pre->keyCode == TrubaLeft) {
+		if (pre->param == TrubaLeft) {
 			updateMapPiece(PIC_MAP_P15, 1);
 			updateMapPiece(PIC_MAP_A09, 1);
 		}
 
-		if (pre->keyCode == TrubaDown)
+		if (pre->param == TrubaDown)
 			updateMapPiece(PIC_MAP_A08, 1);
 
 		break;
@@ -1304,10 +1304,10 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_24:
 		updateMapPiece(PIC_MAP_S24, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_A08, 1);
 
-		if (pre->keyCode == TrubaDown) {
+		if (pre->param == TrubaDown) {
 			updateMapPiece(PIC_MAP_P13, 1);
 			updateMapPiece(PIC_MAP_A07, 1);
 		}
@@ -1320,10 +1320,10 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_26:
 		updateMapPiece(PIC_MAP_S26, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_A06, 1);
 
-		if (pre->keyCode == TrubaUp) {
+		if (pre->param == TrubaUp) {
 			updateMapPiece(PIC_MAP_P13, 1);
 			updateMapPiece(PIC_MAP_A07, 1);
 		}
@@ -1337,7 +1337,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_28:
 		updateMapPiece(PIC_MAP_S28, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_A06, 1);
 
 		break;
@@ -1345,7 +1345,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_29:
 		updateMapPiece(PIC_MAP_S29, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_A05, 1);
 
 		break;
@@ -1353,10 +1353,10 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_30:
 		updateMapPiece(PIC_MAP_S30, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_P09, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_A04, 1);
 
 		break;
@@ -1367,7 +1367,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 		if (getObjectState(sO_Cactus) == getObjectEnumState(sO_Cactus, sO_HasGrown))
 			updateMapPiece(PIC_MAP_S31_1, 1);
 
-		if (pre->keyCode == TrubaRight)
+		if (pre->param == TrubaRight)
 			updateMapPiece(PIC_MAP_P09, 1);
 
 		break;
@@ -1387,7 +1387,7 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_34:
 		updateMapPiece(PIC_MAP_S34, 1);
 
-		if (pre->keyCode == TrubaUp)
+		if (pre->param == TrubaUp)
 			updateMapPiece(PIC_MAP_A03, 1);
 
 		break;
@@ -1395,10 +1395,10 @@ void FullpipeEngine::updateMap(PreloadItem *pre) {
 	case SC_35:
 		updateMapPiece(PIC_MAP_S35, 1);
 
-		if (pre->keyCode == TrubaLeft)
+		if (pre->param == TrubaLeft)
 			updateMapPiece(PIC_MAP_A02, 1);
 
-		if (pre->keyCode == TrubaDown)
+		if (pre->param == TrubaDown)
 			updateMapPiece(PIC_MAP_A03, 1);
 
 		break;


Commit: 2cbf7da3199f61878fff8c8bfd1300cb6a4068ab
    https://github.com/scummvm/scummvm/commit/2cbf7da3199f61878fff8c8bfd1300cb6a4068ab
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-05T00:11:07+02:00

Commit Message:
FULLPIPE: Rename is GabeObject

Changed paths:
    engines/fullpipe/anihandler.cpp
    engines/fullpipe/behavior.cpp
    engines/fullpipe/gfx.cpp
    engines/fullpipe/gfx.h
    engines/fullpipe/interaction.cpp
    engines/fullpipe/inventory.cpp
    engines/fullpipe/lift.cpp
    engines/fullpipe/messagehandlers.cpp
    engines/fullpipe/motion.cpp
    engines/fullpipe/scene.cpp
    engines/fullpipe/scenes/scene04.cpp
    engines/fullpipe/scenes/scene06.cpp
    engines/fullpipe/scenes/scene08.cpp
    engines/fullpipe/scenes/scene09.cpp
    engines/fullpipe/scenes/scene14.cpp
    engines/fullpipe/scenes/scene16.cpp
    engines/fullpipe/scenes/scene23.cpp
    engines/fullpipe/scenes/scene25.cpp
    engines/fullpipe/scenes/scene26.cpp
    engines/fullpipe/scenes/scene27.cpp
    engines/fullpipe/scenes/scene28.cpp
    engines/fullpipe/scenes/scene29.cpp
    engines/fullpipe/scenes/scene32.cpp
    engines/fullpipe/scenes/scene33.cpp
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/anihandler.cpp b/engines/fullpipe/anihandler.cpp
index dc1e152..0600479 100644
--- a/engines/fullpipe/anihandler.cpp
+++ b/engines/fullpipe/anihandler.cpp
@@ -94,7 +94,7 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
 			ex = new ExCommand(ani->_id, 1, _items[idx]->subItems[subidx]->movement->_id, 0, 0, 0, 1, 0, 0, 0);
 		}
 
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		ex->_field_3C = 1;
 		ex->_field_24 = 1;
 
@@ -350,7 +350,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(s->movement, mkQueue->ani->_id, x1, y1, &x2, &y2, -1);
 		ex2->_parId = mq->_id;
-		ex2->_param = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_odelay;
 
 		mq->addExCommandToEnd(ex2);
 
@@ -367,7 +367,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(mov, mkQueue->ani->_id, x1, y1, &x2, &y2, plen);
 		ex2->_parId = mq->_id;
-		ex2->_param = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_odelay;
 
 		mq->addExCommandToEnd(ex2);
 	}
@@ -377,7 +377,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 
 		ex2 = createCommand(s->movement, mkQueue->ani->_id, x1, y1, &x2, &y2, -1);
 		ex2->_parId = mq->_id;
-		ex2->_param = mkQueue->ani->_okeyCode;
+		ex2->_param = mkQueue->ani->_odelay;
 
 		mq->addExCommandToEnd(ex2);
 
@@ -387,7 +387,7 @@ MessageQueue *AniHandler::makeRunQueue(MakeQueueStruct *mkQueue) {
 	ExCommand *ex = new ExCommand(mkQueue->ani->_id, 5, -1, mkQueue->x1, mkQueue->y1, 0, 1, 0, 0, 0);
 
 	ex->_field_14 = mkQueue->field_1C;
-	ex->_param = mkQueue->ani->_okeyCode;
+	ex->_param = mkQueue->ani->_odelay;
 	ex->_field_24 = 0;
 	ex->_excFlags |= 3;
 
diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp
index 1afa583..d0de11b 100644
--- a/engines/fullpipe/behavior.cpp
+++ b/engines/fullpipe/behavior.cpp
@@ -181,7 +181,7 @@ void BehaviorManager::updateStaticAniBehavior(StaticANIObject *ani, int delay, B
 	}
 
 	if (mq) {
-		mq->setParamInt(-1, ani->_okeyCode);
+		mq->setParamInt(-1, ani->_odelay);
 		mq->chain(ani);
 	}
 }
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 2e941c9..547b6cf 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -95,7 +95,7 @@ bool Background::load(MfcArchive &file) {
 }
 
 void Background::addPictureObject(PictureObject *pct) {
-	if (pct->_okeyCode)
+	if (pct->_odelay)
 		pct->renumPictures(&_picObjList);
 
 	bool inserted = false;
@@ -206,7 +206,7 @@ bool PictureObject::setPicAniInfo(PicAniInfo *picAniInfo) {
 	if (picAniInfo->type & 2) {
 		setOXY(picAniInfo->ox, picAniInfo->oy);
 		_priority = picAniInfo->priority;
-		_okeyCode = picAniInfo->field_8;
+		_odelay = picAniInfo->field_8;
 		setFlags(picAniInfo->flags);
 		_field_8 = picAniInfo->field_24;
 
@@ -251,7 +251,7 @@ void PictureObject::setOXY2() {
 }
 
 GameObject::GameObject() {
-	_okeyCode = 0;
+	_odelay = 0;
 	_flags = 0;
 	_id = 0;
 	_ox = 0;
@@ -263,7 +263,7 @@ GameObject::GameObject() {
 }
 
 GameObject::GameObject(GameObject *src) {
-	_okeyCode = 1;
+	_odelay = 1;
 	_flags = 0;
 	_id = src->_id;
 
@@ -283,7 +283,7 @@ GameObject::~GameObject() {
 
 bool GameObject::load(MfcArchive &file) {
 	debugC(5, kDebugLoading, "GameObject::load()");
-	_okeyCode = 0;
+	_odelay = 0;
 	_flags = 0;
 	_field_20 = 0;
 
@@ -311,14 +311,14 @@ void GameObject::renumPictures(Common::Array<StaticANIObject *> *lst) {
 
 	for (uint i = 0; i < lst->size(); i++) {
 		if (_id == ((GameObject *)((*lst)[i]))->_id)
-			buf[((GameObject *)((*lst)[i]))->_okeyCode] = 1;
+			buf[((GameObject *)((*lst)[i]))->_odelay] = 1;
 	}
 
-	if (buf[_okeyCode]) {
+	if (buf[_odelay]) {
 		uint count;
 		for (count = 1; buf[count] && count < lst->size() + 2; count++)
 			;
-		_okeyCode = count;
+		_odelay = count;
 	}
 
 	free(buf);
@@ -329,14 +329,14 @@ void GameObject::renumPictures(Common::Array<PictureObject *> *lst) {
 
 	for (uint i = 0; i < lst->size(); i++) {
 		if (_id == ((GameObject *)((*lst)[i]))->_id)
-			buf[((GameObject *)((*lst)[i]))->_okeyCode] = 1;
+			buf[((GameObject *)((*lst)[i]))->_odelay] = 1;
 	}
 
-	if (buf[_okeyCode]) {
+	if (buf[_odelay]) {
 		uint count;
 		for (count = 1; buf[count] && count < lst->size() + 2; count++)
 			;
-		_okeyCode = count;
+		_odelay = count;
 	}
 
 	free(buf);
@@ -347,7 +347,7 @@ bool GameObject::getPicAniInfo(PicAniInfo *info) {
 		info->type = 2;
 		info->objectId = _id;
 		info->sceneId = 0;
-		info->field_8 = _okeyCode;
+		info->field_8 = _odelay;
 		info->flags = _flags;
 		info->field_24 = _field_8;
 		info->ox = _ox;
@@ -362,7 +362,7 @@ bool GameObject::getPicAniInfo(PicAniInfo *info) {
 
 		info->type = (ani->_messageQueueId << 16) | 1;
 		info->objectId = ani->_id;
-		info->field_8 = ani->_okeyCode;
+		info->field_8 = ani->_odelay;
 		info->sceneId = ani->_sceneId;
 		info->flags = ani->_flags;
 		info->field_24 = ani->_field_8;
@@ -401,7 +401,7 @@ bool GameObject::setPicAniInfo(PicAniInfo *picAniInfo) {
 	if (picAniInfo->type & 2) {
 		setOXY(picAniInfo->ox, picAniInfo->oy);
 		_priority = picAniInfo->priority;
-		_okeyCode = picAniInfo->field_8;
+		_odelay = picAniInfo->field_8;
 		setFlags(picAniInfo->flags);
 		_field_8 = picAniInfo->field_24;
 
@@ -412,7 +412,7 @@ bool GameObject::setPicAniInfo(PicAniInfo *picAniInfo) {
 		StaticANIObject *ani = (StaticANIObject *)this;
 
 		ani->_messageQueueId = (picAniInfo->type >> 16) & 0xffff;
-		ani->_okeyCode = picAniInfo->field_8;
+		ani->_odelay = picAniInfo->field_8;
 		ani->setFlags(picAniInfo->flags);
 		ani->_field_8 = picAniInfo->field_24;
 
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index d94dd40..cbba550 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -123,7 +123,7 @@ class BigPicture : public Picture {
 
 class GameObject : public CObject {
   public:
-	int16 _okeyCode;
+	int16 _odelay;
 	int _field_8;
 	int16 _flags;
 	int16 _id;
diff --git a/engines/fullpipe/interaction.cpp b/engines/fullpipe/interaction.cpp
index 7620f92..6bbf98e 100644
--- a/engines/fullpipe/interaction.cpp
+++ b/engines/fullpipe/interaction.cpp
@@ -188,8 +188,8 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
 
 			ex = new ExCommand((subj ? subj->_id : 0), 55, 0, 0, 0, 0, 1, 0, 0, 0);
 			ex->_x = obj->_id;
-			ex->_y = obj->_okeyCode;
-			ex->_param = subj ? subj->_okeyCode : 0;
+			ex->_y = obj->_odelay;
+			ex->_param = subj ? subj->_odelay : 0;
 			ex->_excFlags = 3;
 			ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
 			ex->_field_20 = invId;
@@ -205,7 +205,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
 LABEL_38:
 			if (inter->_messageQueue) {
 				mq = new MessageQueue(inter->_messageQueue, 0, 1);
-				mq->changeParam28ForObjectId(ani->_id, -1, ani->_okeyCode);
+				mq->changeParam28ForObjectId(ani->_id, -1, ani->_odelay);
 
 				if (!mq->chain(0))
 					return false;
@@ -253,12 +253,12 @@ LABEL_38:
 		subj->setOXY(inter->_xOffs + obj->_ox, inter->_yOffs + obj->_oy);
 
 		mq = new MessageQueue(inter->_messageQueue, 0, 1);
-		mq->changeParam28ForObjectId(obj->_id, -1, obj->_okeyCode);
+		mq->changeParam28ForObjectId(obj->_id, -1, obj->_odelay);
 		mq->_flags |= 1;
 
 		if (!(inter->_flags & 0x10000)) {
 			ex = new ExCommand(obj->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
-			ex->_param = obj->_okeyCode;
+			ex->_param = obj->_odelay;
 			ex->_field_14 = 0x100;
 			ex->_messageNum = 0;
 			ex->_excFlags = 3;
@@ -266,14 +266,14 @@ LABEL_38:
 		}
 
 		ex = new ExCommand(obj->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = obj->_okeyCode;
+		ex->_param = obj->_odelay;
 		ex->_field_14 = 0x100;
 		ex->_messageNum = 0;
 		ex->_excFlags = 3;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(subj->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = subj->_okeyCode;
+		ex->_param = subj->_odelay;
 		ex->_field_14 = 0x100;
 		ex->_messageNum = 0;
 		ex->_excFlags = 3;
@@ -319,8 +319,8 @@ LABEL_38:
 
 			ex = new ExCommand(subj->_id, 55, 0, 0, 0, 0, 1, 0, 0, 0);
 			ex->_x = obj->_id;
-			ex->_y = obj->_okeyCode;
-			ex->_param = subj->_okeyCode;
+			ex->_y = obj->_odelay;
+			ex->_param = subj->_odelay;
 			ex->_excFlags = 3;
 			ex->_field_20 = invId;
 			ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
@@ -334,7 +334,7 @@ LABEL_38:
 			ex->_excFlags |= 3;
 			ex->_param = 6;
 			ex->_field_14 = obj->_id;
-			ex->_field_20 = obj->_okeyCode;
+			ex->_field_20 = obj->_odelay;
 			ex->postMessage();
 		}
 
@@ -362,21 +362,21 @@ LABEL_38:
 					} else {
 						ex = new ExCommand(ani->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
 						ex->_field_14 = 0x80;
-						ex->_param = ani->_okeyCode;
+						ex->_param = ani->_odelay;
 						ex->_excFlags = 3;
 						mq->addExCommandToEnd(ex);
 					}
 				}
 				ex = new ExCommand(ani->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
-				ex->_param = ani->_okeyCode;
+				ex->_param = ani->_odelay;
 				ex->_field_14 = 0x100;
 				ex->_excFlags = 3;
 				mq->addExCommandToEnd(ex);
 			} else {
 				ex = new ExCommand(subj->_id, 55, 0, 0, 0, 0, 1, 0, 0, 0);
 				ex->_x = ani->_id;
-				ex->_y = ani->_okeyCode;
-				ex->_param = subj->_okeyCode;
+				ex->_y = ani->_odelay;
+				ex->_param = subj->_odelay;
 				ex->_excFlags = 2;
 				ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
 				ex->_field_20 = invId;
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index b207ab1..13ac78a 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -231,7 +231,7 @@ void Inventory2::rebuildItemRects() {
 
 		for (uint j = 0; j < _itemsPool.size(); j++) {
 			if (_itemsPool[j]->pictureObjectNormal == pic->_id) {
-				if (pic->_okeyCode)
+				if (pic->_odelay)
 					_scene->deletePictureObject(pic);
 				else
 					pic->_flags &= 0xFFFB;
diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp
index c64e7b6..10b4154 100644
--- a/engines/fullpipe/lift.cpp
+++ b/engines/fullpipe/lift.cpp
@@ -240,23 +240,23 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
 
 	if (!cmd) {
 		ex = new ExCommand(_aniMan->_id, 2, 40, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_odelay;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
 	}
 
 	ex = new ExCommand(_lift->_id, 1, MV_LFT_OPEN, 0, 0, 0, 1, 0, 0, 0);
-	ex->_param = _lift->_okeyCode;
+	ex->_param = _lift->_odelay;
 	ex->_excFlags |= 2;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_aniMan->_id, 1, MV_MAN_STARTD, 0, 0, 0, 1, 0, 0, 0);
-	ex->_param = _aniMan->_okeyCode;
+	ex->_param = _aniMan->_odelay;
 	ex->_excFlags |= 2;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
-	ex->_param = _aniMan->_okeyCode;
+	ex->_param = _aniMan->_odelay;
 	ex->_field_14 = 10;
 	ex->_x = -1;
 	ex->_y = -1;
@@ -274,7 +274,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(_lift->_id, 1, MV_LFT_CLOSE, 0, 0, 0, 1, 0, 0, 0);
-	ex->_param = _lift->_okeyCode;
+	ex->_param = _lift->_odelay;
 	ex->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex);
@@ -340,12 +340,12 @@ void FullpipeEngine::lift_walkAndGo() {
 		mq->setFlags(mq->getFlags() | 1);
 
 		ex = new ExCommand(_aniMan->_id, 2, 15, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_odelay;
 		ex->_excFlags |= 2;
 		mq->addExCommand(ex);
 
 		ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = _aniMan->_okeyCode;
+		ex->_param = _aniMan->_odelay;
 		ex->_field_14 = _lift->_priority + 1;
 		ex->_x = -1;
 		ex->_y = -1;
diff --git a/engines/fullpipe/messagehandlers.cpp b/engines/fullpipe/messagehandlers.cpp
index dcc7919..ec01597 100644
--- a/engines/fullpipe/messagehandlers.cpp
+++ b/engines/fullpipe/messagehandlers.cpp
@@ -221,7 +221,7 @@ int global_messageHandler1(ExCommand *cmd) {
 					}
 
 					if (newex) {
-						newex->_param = g_fp->_aniMan->_okeyCode;
+						newex->_param = g_fp->_aniMan->_odelay;
 						newex->_excFlags |= 3;
 						newex->postMessage();
 					}
@@ -397,7 +397,7 @@ int global_messageHandler3(ExCommand *cmd) {
 				ani2 = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_gameLoader->_field_FA, -1);
 
 				if (ani) {
-					if (g_fp->_msgObjectId2 == ani->_id && g_fp->_msgId == ani->_okeyCode) {
+					if (g_fp->_msgObjectId2 == ani->_id && g_fp->_msgId == ani->_odelay) {
 						cmd->_messageKind = 0;
 						return result;
 					}
@@ -409,7 +409,7 @@ int global_messageHandler3(ExCommand *cmd) {
 					int id = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
 					PictureObject *pic = g_fp->_currentScene->getPictureObjectById(id, 0);
 					if (pic) {
-						if (g_fp->_msgObjectId2 == pic->_id && g_fp->_msgId == pic->_okeyCode) {
+						if (g_fp->_msgObjectId2 == pic->_id && g_fp->_msgId == pic->_odelay) {
 							cmd->_messageKind = 0;
 							return result;
 						}
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index a84baa6..490e593 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -225,7 +225,7 @@ MessageQueue *MctlCompound::startMove(StaticANIObject *ani, int sourceX, int sou
 
 	ex->_excFlags |= 2;
 	ex->_field_20 = fuzzyMatch;
-	ex->_param = ani->_okeyCode;
+	ex->_param = ani->_odelay;
 
 	mq->addExCommandToEnd(ex);
 
@@ -293,7 +293,7 @@ MessageQueue *MctlCompound::makeQueue(StaticANIObject *subj, int xpos, int ypos,
 		ex = new ExCommand(subj->_id, 51, 0, xpos, ypos, 0, 1, 0, 0, 0);
 
 		ex->_field_20 = fuzzyMatch;
-		ex->_param = subj->_okeyCode;
+		ex->_param = subj->_odelay;
 		ex->_excFlags |= 2;
 
 		mq->addExCommandToEnd(ex);
@@ -542,7 +542,7 @@ MessageQueue *MctlLadder::makeQueue(StaticANIObject *ani, int xpos, int ypos, in
 		mq = _aniHandler.makeRunQueue(&mkQueue);
 
 		ex = new ExCommand(ani->_id, 1, _ladmovements[pos]->movVars->varUpStop, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		ex->_excFlags |= 2;
 
 		mq->insertExCommandAt(0, ex);
@@ -608,7 +608,7 @@ MessageQueue *MctlLadder::makeQueue(StaticANIObject *ani, int xpos, int ypos, in
 		mq = _aniHandler.makeRunQueue(&mkQueue);
 
 		ex = new ExCommand(ani->_id, 1, _ladmovements[pos]->movVars->varDownStop, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		ex->_excFlags |= 2;
 
 		mq->insertExCommandAt(0, ex);
@@ -950,13 +950,13 @@ MessageQueue *MovGraph::startMove(StaticANIObject *ani, int xpos, int ypos, int
 			mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 
 			ex = new ExCommand(ani->_id, 21, 0, 0, 0, 0, 1, 0, 0, 0);
-			ex->_param = ani->_okeyCode;
+			ex->_param = ani->_odelay;
 			ex->_field_3C = 1;
 			ex->_field_24 = 0;
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(ani->_id, 51, 0, xpos, ypos, 0, 1, 0, 0, 0);
-			ex->_param = ani->_okeyCode;
+			ex->_param = ani->_odelay;
 			ex->_field_3C = 1;
 			ex->_field_24 = 0;
 			ex->_field_20 = fuzzyMatch;
@@ -1998,7 +1998,7 @@ MessageQueue *MctlGraph::makeWholeQueue(MctlMQ *mctlMQ) {
 				ExCommand *ex = new ExCommand(_items2[mctlMQ->index]->_objectId, 1, mg2i->_movementId, 0, 0, 0, 1, 0, 0, 0);
 
 				ex->_excFlags |= 2;
-				ex->_param = _items2[mctlMQ->index]->_obj->_okeyCode;
+				ex->_param = _items2[mctlMQ->index]->_obj->_odelay;
 				ex->_field_24 = 1;
 				ex->_field_14 = -1;
 				mq->addExCommandToEnd(ex);
@@ -2599,7 +2599,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 
 		ex->_field_14 = info->distance1;
 
-		ex->_param = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_odelay;
 		ex->_field_24 = 1;
 		ex->_excFlags |= 2;
 	} else {
@@ -2617,7 +2617,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 
 		ex->_field_14 = info->distance1;
 
-		ex->_param = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_odelay;
 		ex->_field_24 = 1;
 		ex->_excFlags |= 2;
 		mq->addExCommandToEnd(ex);
@@ -2631,7 +2631,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  -1);
 		ex->_parId = mq->_id;
-		ex->_param = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_odelay;
 	}
 
 	mq->addExCommandToEnd(ex);
@@ -2653,7 +2653,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  par);
 		ex->_parId = mq->_id;
-		ex->_param = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_odelay;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -2667,7 +2667,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 								  &y2,
 								  -1);
 		ex->_parId = mq->_id;
-		ex->_param = _items2[info->index]->_obj->_okeyCode;
+		ex->_param = _items2[info->index]->_obj->_odelay;
 
 		mq->addExCommandToEnd(ex);
 	}
@@ -2675,7 +2675,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
 	ex = new ExCommand(_items2[info->index]->_objectId, 5, -1, info->pt2.x, info->pt2.y, 0, 1, 0, 0, 0);
 	ex->_field_14 = info->distance2;
 
-	ex->_param = _items2[info->index]->_obj->_okeyCode;
+	ex->_param = _items2[info->index]->_obj->_odelay;
 	ex->_field_24 = 0;
 	ex->_excFlags |= 2;
 
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp
index 6f23431..d8e3090 100644
--- a/engines/fullpipe/scene.cpp
+++ b/engines/fullpipe/scene.cpp
@@ -302,7 +302,7 @@ StaticANIObject *Scene::getAniMan() {
 
 StaticANIObject *Scene::getStaticANIObject1ById(int obj, int a3) {
 	for (uint i = 0; i < _staticANIObjectList1.size(); i++) {
-		if (_staticANIObjectList1[i]->_id == obj && (a3 == -1 || _staticANIObjectList1[i]->_okeyCode == a3))
+		if (_staticANIObjectList1[i]->_id == obj && (a3 == -1 || _staticANIObjectList1[i]->_odelay == a3))
 			return _staticANIObjectList1[i];
 	}
 
@@ -311,7 +311,7 @@ StaticANIObject *Scene::getStaticANIObject1ById(int obj, int a3) {
 
 StaticANIObject *Scene::getStaticANIObject1ByName(char *name, int a3) {
 	for (uint i = 0; i < _staticANIObjectList1.size(); i++) {
-		if (!strcmp(_staticANIObjectList1[i]->_objectName, name) && (a3 == -1 || _staticANIObjectList1[i]->_okeyCode == a3))
+		if (!strcmp(_staticANIObjectList1[i]->_objectName, name) && (a3 == -1 || _staticANIObjectList1[i]->_odelay == a3))
 			return _staticANIObjectList1[i];
 	}
 
@@ -333,13 +333,13 @@ void Scene::deleteStaticANIObject(StaticANIObject *obj) {
 }
 
 void Scene::addStaticANIObject(StaticANIObject *obj, bool addList2) {
-	if (obj->_okeyCode)
+	if (obj->_odelay)
 		obj->renumPictures(&_staticANIObjectList1);
 
 	_staticANIObjectList1.push_back(obj);
 
 	if (addList2) {
-		if (!obj->_okeyCode)
+		if (!obj->_odelay)
 			obj->clearFlags();
 
 		_staticANIObjectList2.push_back(obj);
@@ -359,7 +359,7 @@ void Scene::stopAllSounds() {
 
 PictureObject *Scene::getPictureObjectById(int objId, int flags) {
 	for (uint i = 1; i < _picObjList.size(); i++) {
-		if (((PictureObject *)_picObjList[i])->_id == objId && ((PictureObject *)_picObjList[i])->_okeyCode == flags)
+		if (((PictureObject *)_picObjList[i])->_id == objId && ((PictureObject *)_picObjList[i])->_odelay == flags)
 			return (PictureObject *)_picObjList[i];
 	}
 
@@ -368,7 +368,7 @@ PictureObject *Scene::getPictureObjectById(int objId, int flags) {
 
 PictureObject *Scene::getPictureObjectByName(const char *objName, int flags) {
 	for (uint i = 0; i < _picObjList.size(); i++) {
-		if (!strcmp(((PictureObject *)_picObjList[i])->_objectName, objName) && (((PictureObject *)_picObjList[i])->_okeyCode == flags || flags == -1))
+		if (!strcmp(((PictureObject *)_picObjList[i])->_objectName, objName) && (((PictureObject *)_picObjList[i])->_odelay == flags || flags == -1))
 			return (PictureObject *)_picObjList[i];
 	}
 
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index dcb737a..6810744 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -303,14 +303,14 @@ void sceneHandler04_walkClimbLadder(ExCommand *ex) {
 
 	ExCommand *ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_TOLADDER, 0, 0, 0, 1, 0, 0, 0);
 
-	ex1->_param = g_fp->_aniMan->_okeyCode;
+	ex1->_param = g_fp->_aniMan->_odelay;
 	ex1->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex1);
 
 	ExCommand *ex2 = new ExCommand(ANI_MAN, 1, MV_MAN_STOPLADDER, 0, 0, 0, 1, 0, 0, 0);
 
-	ex2->_param = g_fp->_aniMan->_okeyCode;
+	ex2->_param = g_fp->_aniMan->_odelay;
 	ex2->_excFlags |= 2;
 
 	mq->addExCommandToEnd(ex2);
@@ -589,29 +589,29 @@ MessageQueue *sceneHandler04_kozFly3(StaticANIObject *ani, double phase) {
 	if (mq) {
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 5; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_param = ani->_okeyCode;
+			ex->_param = ani->_odelay;
 			mq->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -657,29 +657,29 @@ MessageQueue *sceneHandler04_kozFly5(StaticANIObject *ani, double phase) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq1->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq1->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 5; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_param = ani->_okeyCode;
+			ex->_param = ani->_odelay;
 			mq1->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq1->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq1->addExCommandToEnd(ex);
 	}
 
@@ -711,17 +711,17 @@ MessageQueue *sceneHandler04_kozFly6(StaticANIObject *ani) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_RAISEHEAD, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		g_vars->scene04_kozHeadRaised = true;
@@ -771,29 +771,29 @@ MessageQueue *sceneHandler04_kozFly7(StaticANIObject *ani, double phase) {
 
 		ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_TURN, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 2;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		for (int i = 0; i < 2; i++) {
 			ex = new ExCommand(ANI_KOZAWKA, 1, rMV_KZW_GOR, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags |= 2;
-			ex->_param = ani->_okeyCode;
+			ex->_param = ani->_odelay;
 			mq->addExCommandToEnd(ex);
 		}
 
 		ex = new ExCommand(ANI_KOZAWKA, 6, 0, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_KOZAWKA, 17, MSG_KOZAWRESTART, 0, 0, 0, 1, 0, 0, 0);
 		ex->_excFlags |= 3;
-		ex->_param = ani->_okeyCode;
+		ex->_param = ani->_odelay;
 		mq->addExCommandToEnd(ex);
 	}
 
@@ -936,7 +936,7 @@ void sceneHandler04_walkKozyawka() {
 		g_vars->scene04_kozyawkiObjList.pop_front();
 
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_KOZAW_WALK), 0, 1);
-		mq->setParamInt(-1, g_vars->scene04_walkingKozyawka->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene04_walkingKozyawka->_odelay);
 		mq->chain(0);
 	}
 }
@@ -1116,18 +1116,18 @@ void sceneHandler04_leaveLadder(ExCommand *ex) {
 
 					if (g_fp->_aniMan->_statics->_staticsId == ST_MAN_LADDERDOWN) {
 						ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_LOOKLADDERRV, 0, 0, 0, 1, 0, 0, 0);
-						ex1->_param = g_fp->_aniMan->_okeyCode;
+						ex1->_param = g_fp->_aniMan->_odelay;
 						ex1->_excFlags |= 2;
 						mq->addExCommandToEnd(ex1);
 					}
 
 					ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_STARTLADDERD, 0, 0, 0, 1, 0, 0, 0);
-					ex1->_param = g_fp->_aniMan->_okeyCode;
+					ex1->_param = g_fp->_aniMan->_odelay;
 					ex1->_excFlags |= 2;
 					mq->addExCommandToEnd(ex1);
 
 					ex1 = new ExCommand(ANI_MAN, 1, MV_MAN_FROMLADDER, 0, 0, 0, 1, 0, 0, 0);
-					ex1->_param = g_fp->_aniMan->_okeyCode;
+					ex1->_param = g_fp->_aniMan->_odelay;
 					ex1->_excFlags |= 2;
 					mq->addExCommandToEnd(ex1);
 
diff --git a/engines/fullpipe/scenes/scene06.cpp b/engines/fullpipe/scenes/scene06.cpp
index 388c1d1..4d1b263 100644
--- a/engines/fullpipe/scenes/scene06.cpp
+++ b/engines/fullpipe/scenes/scene06.cpp
@@ -266,7 +266,7 @@ void sceneHandler06_showNextBall() {
 
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC6_SHOWNEXTBALL), 0, 1);
 
-		mq->setParamInt(-1, g_vars->scene06_currentBall->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene06_currentBall->_odelay);
 		mq->chain(0);
 
 		++g_vars->scene06_numBallsGiven;
@@ -412,7 +412,7 @@ void sceneHandler06_fallBall() {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC6_FALLBALL), 0, 1);
 
-	mq->setParamInt(-1, g_vars->scene06_flyingBall->_okeyCode);
+	mq->setParamInt(-1, g_vars->scene06_flyingBall->_odelay);
 	mq->chain(0);
 
 	g_vars->scene06_balls.push_back(g_vars->scene06_flyingBall);
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index 313bf9d..b9aaabe 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -318,7 +318,7 @@ void sceneHandler08_badLuck() {
 
 	ExCommand *ex = new ExCommand(g_fp->_aniMan->_id, 1, MV_MAN8_BADLUCK, 0, 0, 0, 1, 0, 0, 0);
 	ex->_excFlags |= 2;
-	ex->_param = g_fp->_aniMan->_okeyCode;
+	ex->_param = g_fp->_aniMan->_odelay;
 	mq->addExCommandToEnd(ex);
 
 	mq->setFlags(mq->getFlags() | 1);
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 3086cf0..3219454 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -486,7 +486,7 @@ void sceneHandler09_ballExplode(Ball *ball) {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC9_BALLEXPLODE), 0, 1);
 
-	mq->setParamInt(-1, ball->ani->_okeyCode);
+	mq->setParamInt(-1, ball->ani->_odelay);
 
 	if (!mq->chain(ball->ani))
 		delete mq;
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index adcc0b7..0e07209 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -143,13 +143,13 @@ void sceneHandler14_showBallGrandmaHit() {
 		MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 		ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_TOGMA, 0, 0, 0, 1, 0, 0, 0);
 
-		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_odelay;
 		ex->_excFlags |= 2;
 		ex->_field_24 = 1;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_odelay;
 		ex->_excFlags |= 3;
 		mq->addExCommandToEnd(ex);
 		mq->chain(0);
@@ -185,13 +185,13 @@ void sceneHandler14_showBallMan() {
 		MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 		ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_TOGMA, 0, 0, 0, 1, 0, 0, 0);
 
-		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_odelay;
 		ex->_excFlags |= 2;
 		ex->_field_24 = 1;
 		mq->addExCommandToEnd(ex);
 
 		ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+		ex->_param = g_vars->scene14_flyingBall->_odelay;
 		ex->_excFlags |= 3;
 		mq->addExCommandToEnd(ex);
 		mq->chain(0);
@@ -501,13 +501,13 @@ void sceneHandler14_passToGrandma() {
 	MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
 	ExCommand *ex = new ExCommand(ANI_BALL14, 1, MV_BAL14_FALL, 0, 0, 0, 1, 0, 0, 0);
 
-	ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+	ex->_param = g_vars->scene14_flyingBall->_odelay;
 	ex->_excFlags |= 2;
 	ex->_field_24 = 1;
 	mq->addExCommandToEnd(ex);
 
 	ex = new ExCommand(ANI_BALL14, 6, 0, 0, 0, 0, 1, 0, 0, 0);
-	ex->_param = g_vars->scene14_flyingBall->_okeyCode;
+	ex->_param = g_vars->scene14_flyingBall->_odelay;
 	ex->_excFlags |= 3;
 	mq->addExCommandToEnd(ex);
 	mq->chain(0);
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index cb21f28..89b7977 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -181,7 +181,7 @@ void sceneHandler16_fillMug() {
 		if (g_vars->scene16_walkingBoy) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYOUT), 0, 1);
 
-			mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene16_walkingBoy->_odelay);
 			if (mq->chain(g_vars->scene16_walkingBoy))
 				return;
 		} else {
@@ -190,7 +190,7 @@ void sceneHandler16_fillMug() {
 
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLOUT), 0, 1);
 
-			mq->setParamInt(-1, g_vars->scene16_walkingGirl->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene16_walkingGirl->_odelay);
 			if (mq->chain(g_vars->scene16_walkingGirl))
 				return;
 		}
@@ -208,7 +208,7 @@ void sceneHandler16_fillMug() {
 	if (g_vars->scene16_walkingBoy) {
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYOUT), 0, 1);
 
-		mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene16_walkingBoy->_odelay);
 
 		ani = g_vars->scene16_walkingBoy;
 	} else {
@@ -217,7 +217,7 @@ void sceneHandler16_fillMug() {
 
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLOUT), 0, 1);
 
-		mq->setParamInt(-1, g_vars->scene16_walkingGirl->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene16_walkingGirl->_odelay);
 		ani = g_vars->scene16_walkingGirl;
 	}
 
@@ -232,7 +232,7 @@ void sceneHandler16_startLaugh() {
 
 	MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GIRLLAUGH), 0, 1);
 
-	mq->setParamInt(-1, girl->_okeyCode);
+	mq->setParamInt(-1, girl->_odelay);
 	mq->setFlags(mq->getFlags() | 1);
 	mq->chain(0);
 
@@ -258,7 +258,7 @@ void sceneHandler16_drink() {
 
 							mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_BOYKICK), 0, 1);
 
-							mq->setParamInt(-1, g_vars->scene16_walkingBoy->_okeyCode);
+							mq->setParamInt(-1, g_vars->scene16_walkingBoy->_odelay);
 
 							ex = new ExCommand(ANI_MAN, 34, 384, 0, 0, 0, 1, 0, 0, 0);
 							ex->_excFlags |= 3u;
@@ -361,7 +361,7 @@ void sceneHandler16_putOnWheel() {
 		if (ani->_id == ANI_BOY) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GOBOY), 0, 1);
 
-			mq->setParamInt(-1, ani->_okeyCode);
+			mq->setParamInt(-1, ani->_odelay);
 			mq->chain(0);
 
 			g_vars->scene16_walkingBoy = ani;
@@ -370,7 +370,7 @@ void sceneHandler16_putOnWheel() {
 			if (g_fp->getObjectState(sO_Girl) == g_fp->getObjectEnumState(sO_Girl, sO_IsSwinging)) {
 				mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC16_GOGIRL), 0, 1);
 
-				mq->setParamInt(-1, ani->_okeyCode);
+				mq->setParamInt(-1, ani->_odelay);
 				mq->chain(0);
 
 				g_vars->scene16_walkingBoy = 0;
diff --git a/engines/fullpipe/scenes/scene23.cpp b/engines/fullpipe/scenes/scene23.cpp
index 2bb928f..a2d4f01 100644
--- a/engines/fullpipe/scenes/scene23.cpp
+++ b/engines/fullpipe/scenes/scene23.cpp
@@ -351,7 +351,7 @@ void sceneHandler23_pushButton(ExCommand *cmd) {
 
 void sceneHandler23_sendClick(StaticANIObject *ani) {
 	int msg = 0;
-	switch (ani->_okeyCode) {
+	switch (ani->_odelay) {
 	case 0:
 		msg = MSG_SC23_CLICKBTN1;
 		break;
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp
index bb05e2f..dfb767e 100644
--- a/engines/fullpipe/scenes/scene25.cpp
+++ b/engines/fullpipe/scenes/scene25.cpp
@@ -234,7 +234,7 @@ void sceneHandler25_animateBearders() {
 
 		mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED), 0, 1);
 
-		mq->setParamInt(-1, g_vars->scene25_bearders[0]->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene25_bearders[0]->_odelay);
 		mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 		mq->chain(0);
 
@@ -243,14 +243,14 @@ void sceneHandler25_animateBearders() {
 		if (g_fp->_rnd->getRandomNumber(32767) < 0x1FFF) {
 			mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED2), 0, 1);
 
-			mq->setParamInt(-1, g_vars->scene25_bearders[1]->_okeyCode);
+			mq->setParamInt(-1, g_vars->scene25_bearders[1]->_odelay);
 			mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 			mq->chain(0);
 
 			if (g_fp->_rnd->getRandomNumber(32767) < 8191) {
 				mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC25_BEARDED3), 0, 1);
 
-				mq->setParamInt(-1, g_vars->scene25_bearders[2]->_okeyCode);
+				mq->setParamInt(-1, g_vars->scene25_bearders[2]->_odelay);
 				mq->getExCommandByIndex(0)->_x = g_fp->_rnd->getRandomNumber(650) + 100;
 				mq->chain(0);
 			}
diff --git a/engines/fullpipe/scenes/scene26.cpp b/engines/fullpipe/scenes/scene26.cpp
index df7accc..d183ee9 100644
--- a/engines/fullpipe/scenes/scene26.cpp
+++ b/engines/fullpipe/scenes/scene26.cpp
@@ -120,7 +120,7 @@ void sceneHandler26_testVent() {
 	if (!g_vars->scene26_activeVent)
 		return;
 
-	if (g_vars->scene26_activeVent->_okeyCode == 0) {
+	if (g_vars->scene26_activeVent->_odelay == 0) {
 		if (g_fp->getObjectState(sO_Valve1_26) == g_fp->getObjectEnumState(sO_Valve1_26, sO_Opened))
 			g_fp->stopAllSoundInstances(SND_26_018);
 		else
@@ -137,7 +137,7 @@ void sceneHandler26_testVent() {
 
 			g_fp->playSound(SND_26_020, 0);
 		}
-	} else if (g_vars->scene26_activeVent->_okeyCode == 1) {
+	} else if (g_vars->scene26_activeVent->_odelay == 1) {
 		if (g_fp->getObjectState(sO_Valve2_26) == g_fp->getObjectEnumState(sO_Valve2_26, sO_Opened))
 			g_fp->playSound(SND_26_020, 0);
 		else
@@ -152,7 +152,7 @@ void sceneHandler26_testVent() {
 
 			chainQueue(QU_SC26_AUTOCLOSE1, 0);
 		}
-	} else if (g_vars->scene26_activeVent->_okeyCode == 2) {
+	} else if (g_vars->scene26_activeVent->_odelay == 2) {
 		if (g_fp->getObjectState(sO_Valve3_26) == g_fp->getObjectEnumState(sO_Valve3_26, sO_Opened))
 			g_fp->playSound(SND_26_020, 0);
 		else
@@ -195,7 +195,7 @@ void sceneHandler26_hideVent() {
 void sceneHandler26_animateVents(StaticANIObject *ani) {
 	int qId = 0;
 
-	switch (ani->_okeyCode) {
+	switch (ani->_odelay) {
 	case 0:
 		if (g_fp->getObjectState(sO_Valve1_26) == g_fp->getObjectEnumState(sO_Valve1_26, sO_Closed))
 			qId = QU_SC26_OPEN1;
@@ -249,7 +249,7 @@ void sceneHandler26_animateVents(StaticANIObject *ani) {
 }
 
 void sceneHandler26_clickVent(StaticANIObject *ani, ExCommand *cmd) {
-	if (ani->_okeyCode || g_fp->getObjectState(sO_Hatch_26) == g_fp->getObjectEnumState(sO_Hatch_26, sO_Opened)) {
+	if (ani->_odelay || g_fp->getObjectState(sO_Hatch_26) == g_fp->getObjectEnumState(sO_Hatch_26, sO_Opened)) {
 		if (g_fp->_aniMan->isIdle() && !(g_fp->_aniMan->_flags & 0x100)) {
 			g_vars->scene26_activeVent = ani;
 
@@ -263,7 +263,7 @@ void sceneHandler26_clickVent(StaticANIObject *ani, ExCommand *cmd) {
 					ExCommand *ex = new ExCommand(0, 17, MSG_SC26_CLICKVENT, 0, 0, 0, 1, 0, 0, 0);
 
 					ex->_excFlags |= 3;
-					ex->_param = ani->_okeyCode;
+					ex->_param = ani->_odelay;
 
 					mq->addExCommandToEnd(ex);
 
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index c8a7bae..93ff53f 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -191,7 +191,7 @@ void sceneHandler27_showNextBat() {
 	if (g_vars->scene27_bat) {
 		MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC27_SHOWBET), 0, 1);
 
-		mq->setParamInt(-1, g_vars->scene27_bat->_okeyCode);
+		mq->setParamInt(-1, g_vars->scene27_bat->_odelay);
 		mq->chain(0);
 	}
 
diff --git a/engines/fullpipe/scenes/scene28.cpp b/engines/fullpipe/scenes/scene28.cpp
index f096e69..d7d2d21 100644
--- a/engines/fullpipe/scenes/scene28.cpp
+++ b/engines/fullpipe/scenes/scene28.cpp
@@ -405,7 +405,7 @@ int sceneHandler28(ExCommand *cmd) {
 
 			if (ani)
 				if (ani->_id == ANI_LIFT || ani->_id == ANI_LIFT_28 ) {
-					sceneHandler28_clickLift(ani->_okeyCode);
+					sceneHandler28_clickLift(ani->_odelay);
 
 					cmd->_messageKind = 0;
 					break;
diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp
index 80f82e0..c29dac0 100644
--- a/engines/fullpipe/scenes/scene29.cpp
+++ b/engines/fullpipe/scenes/scene29.cpp
@@ -510,7 +510,7 @@ void sceneHandler29_manHit() {
 		if (g_vars->scene29_manX <= 638) {
 			ex = new ExCommand(ANI_MAN, 1, MV_MAN29_STANDUP_NORM, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags = 2;
-			ex->_param = g_fp->_aniMan->_okeyCode;
+			ex->_param = g_fp->_aniMan->_odelay;
 			mq->addExCommandToEnd(ex);
 
 			ex = new ExCommand(0, 17, MSG_SC29_STOPRIDE, 0, 0, 0, 1, 0, 0, 0);
@@ -524,7 +524,7 @@ void sceneHandler29_manHit() {
 		} else {
 			ex = new ExCommand(ANI_MAN, 1, MV_MAN29_STANDUP, 0, 0, 0, 1, 0, 0, 0);
 			ex->_excFlags = 2;
-			ex->_param = g_fp->_aniMan->_okeyCode;
+			ex->_param = g_fp->_aniMan->_odelay;
 			mq->addExCommandToEnd(ex);
 		}
 
@@ -878,7 +878,7 @@ void sceneHandler29_animBearded() {
 				if (x - g_vars->scene29_manX < 100 || !g_vars->scene29_arcadeIsOn) {
 					mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC29_BRDOUT1), 0, 1);
 
-					mq->setParamInt(-1, ani->_okeyCode);
+					mq->setParamInt(-1, ani->_odelay);
 					mq->chain(0);
 
 					g_vars->scene29_bearders[i]->wbflag = 0;
@@ -898,7 +898,7 @@ void sceneHandler29_animBearded() {
 
 						mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC29_BRDOUT2), 0, 1);
 
-						mq->setParamInt(-1, ani->_okeyCode);
+						mq->setParamInt(-1, ani->_odelay);
 						mq->chain(0);
 
 						g_vars->scene29_bearders[i]->wbflag = 0;
@@ -939,7 +939,7 @@ void sceneHandler29_animBearded() {
 			}
 
 			mq->getExCommandByIndex(0)->_x = newx;
-			mq->setParamInt(-1, ani->_okeyCode);
+			mq->setParamInt(-1, ani->_odelay);
 			mq->chain(0);
 
 			g_vars->scene29_bearders[i]->wbflag = 1;
diff --git a/engines/fullpipe/scenes/scene32.cpp b/engines/fullpipe/scenes/scene32.cpp
index 1766d79..e1c999d 100644
--- a/engines/fullpipe/scenes/scene32.cpp
+++ b/engines/fullpipe/scenes/scene32.cpp
@@ -185,7 +185,7 @@ void sceneHandler32_trySit(ExCommand *cmd) {
 		ex->_parentId = ANI_MAN;
 		ex->_messageKind = 1;
 		ex->_messageNum = MV_MAN32_SITDOWN;
-		ex->_param = g_fp->_aniMan->_okeyCode;
+		ex->_param = g_fp->_aniMan->_odelay;
 
 		g_vars->scene32_dudeIsSitting = true;
 
diff --git a/engines/fullpipe/scenes/scene33.cpp b/engines/fullpipe/scenes/scene33.cpp
index f9fdcdf..6a58cdf 100644
--- a/engines/fullpipe/scenes/scene33.cpp
+++ b/engines/fullpipe/scenes/scene33.cpp
@@ -107,7 +107,7 @@ void sceneHandler33_switchVent(StaticANIObject *ani) {
 	if (mv)
 		ani->startAnim(mv, 0, -1);
 
-	g_vars->scene33_ventsState[ani->_okeyCode] = !g_vars->scene33_ventsState[ani->_okeyCode];
+	g_vars->scene33_ventsState[ani->_odelay] = !g_vars->scene33_ventsState[ani->_odelay];
 }
 
 void sceneHandler33_processVents() {
@@ -169,7 +169,7 @@ void sceneHandler33_zoneClickProcess(StaticANIObject *ani) {
 		StaticANIObject *vent1 = 0;
 		StaticANIObject *vent2 = 0;
 
-		switch (ani->_okeyCode) {
+		switch (ani->_odelay) {
 		case 0:
 			vent1 = g_fp->_currentScene->getStaticANIObject1ById(ANI_VENT_33, 2);
 			vent2 = g_fp->_currentScene->getStaticANIObject1ById(ANI_VENT_33, 3);
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 39bd296..25ab6cd 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -824,7 +824,7 @@ void StaticANIObject::update(int counterdiff) {
 					newex->_excFlags |= 2;
 					if (newex->_messageKind == 17) {
 						newex->_parentId = _id;
-						newex->_param = _okeyCode;
+						newex->_param = _odelay;
 					}
 					newex->sendMessage();
 
@@ -836,7 +836,7 @@ void StaticANIObject::update(int counterdiff) {
 			if (dyn->_initialCountdown == dyn->_countdown && dyn->_field_68 != 0) {
 				newex = new ExCommand(_id, 17, dyn->_field_68, 0, 0, 0, 1, 0, 0, 0);
 				newex->_excFlags = 2;
-				newex->_param = _okeyCode;
+				newex->_param = _odelay;
 				newex->sendMessage();
 
 				if (!_movement)
@@ -1006,7 +1006,7 @@ L12:
 		_movement = 0;
 
 		ExCommand *ex = new ExCommand(_id, 17, 24, 0, 0, 0, 1, 0, 0, 0);
-		ex->_param = _okeyCode;
+		ex->_param = _odelay;
 		ex->_excFlags = 2;
 		ex->postMessage();
 	}
@@ -1274,7 +1274,7 @@ void StaticANIObject::startAnimSteps(int movementId, int messageQueueId, int x,
 
 	ExCommand *ex = new ExCommand(_id, 17, 23, 0, 0, movementId, 1, 0, 0, 0);
 
-	ex->_param = _okeyCode;
+	ex->_param = _odelay;
 	ex->_excFlags = 2;
 	ex->postMessage();
 }
@@ -1386,7 +1386,7 @@ bool StaticANIObject::startAnim(int movementId, int messageQueueId, int dynPhase
 
 	ExCommand *newex = new ExCommand(_id, 17, 23, 0, 0, movementId, 1, 0, 0, 0);
 
-	newex->_param = _okeyCode;
+	newex->_param = _odelay;
 	newex->_excFlags = 2;
 
 	newex->postMessage();





More information about the Scummvm-git-logs mailing list