[Scummvm-git-logs] scummvm branch-2-0 -> 939a6d9bb8630dd5e09617ac3e3e4f803d4bf6c1
sev-
sev at scummvm.org
Sun Dec 3 23:07:53 CET 2017
This automated email contains information about 6 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a08ebc2d63 FULLPIPE: Fix bug #9672: "Several inventory items highlighted at the same time"
6bf5b1ae79 FULLPIPE: Fix bug #9673: Unable to move after loading a save from the title screen
c0afab552c FULLPIPE: Fix bug #10325: New game does not put back already picked up items
7d482d78cf FULLPIPE: Fix bug #10317: Save game metadata is missing
cfabb89eb5 FULLPIPE: Added more debug output to the class loading
939a6d9bb8 FULLPIPE: Renames in ExCommand
Commit: a08ebc2d63b83b24089d412f78bf7f5fba9c1d55
https://github.com/scummvm/scummvm/commit/a08ebc2d63b83b24089d412f78bf7f5fba9c1d55
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:54+01:00
Commit Message:
FULLPIPE: Fix bug #9672: "Several inventory items highlighted at the same time"
Changed paths:
engines/fullpipe/inventory.cpp
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index 1a3c234..bba1284 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -465,6 +465,8 @@ int Inventory2::getHoveredItem(Common::Point *point) {
if (!_isInventoryOut)
return 0;
+ int res = 0;
+
for (uint i = 0; i < _inventoryIcons.size(); i++) {
InventoryIcon &icn = _inventoryIcons[i];
if (selId ||
@@ -475,11 +477,11 @@ int Inventory2::getHoveredItem(Common::Point *point) {
icn.isMouseHover = false;
} else {
icn.isMouseHover = true;
- return icn.inventoryItemId;
+ res = icn.inventoryItemId;
}
}
- return 0;
+ return res;
}
void Inventory2::clear() {
Commit: 6bf5b1ae7966959295511d80fa8d125adbc3d654
https://github.com/scummvm/scummvm/commit/6bf5b1ae7966959295511d80fa8d125adbc3d654
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:54+01:00
Commit Message:
FULLPIPE: Fix bug #9673: Unable to move after loading a save from the title screen
Changed paths:
engines/fullpipe/fullpipe.cpp
engines/fullpipe/fullpipe.h
engines/fullpipe/modal.h
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp
index 6f8e642..f50593cc 100644
--- a/engines/fullpipe/fullpipe.cpp
+++ b/engines/fullpipe/fullpipe.cpp
@@ -230,6 +230,8 @@ bool FullpipeEngine::shouldQuit() {
}
Common::Error FullpipeEngine::loadGameState(int slot) {
+ deleteModalObject();
+
if (_gameLoader->readSavegame(getSavegameFile(slot)))
return Common::kNoError;
else
@@ -343,11 +345,7 @@ void FullpipeEngine::updateEvents() {
if (_modalObject->init(42)) {
_modalObject->update();
} else {
- _modalObject->saveload();
- BaseModalObject *obj = _modalObject->_parentObj;
- if (obj)
- delete _modalObject;
- _modalObject = obj;
+ deleteModalObject();
}
} else {
_gameLoader->updateSystems(42);
@@ -470,6 +468,18 @@ void FullpipeEngine::cleanup() {
stopAllSoundStreams();
}
+void FullpipeEngine::deleteModalObject() {
+ if (!_modalObject)
+ return;
+
+ _modalObject->saveload();
+ BaseModalObject *tmp = _modalObject->_parentObj;
+
+ delete _modalObject;
+
+ _modalObject = tmp;
+}
+
void FullpipeEngine::updateScreen() {
debugC(4, kDebugDrawing, "FullpipeEngine::updateScreen()");
@@ -484,12 +494,7 @@ void FullpipeEngine::updateScreen() {
if (_modalObject->init(42)) {
_modalObject->update();
} else {
- _modalObject->saveload();
- BaseModalObject *tmp = _modalObject->_parentObj;
-
- delete _modalObject;
-
- _modalObject = tmp;
+ deleteModalObject();
}
}
} else if (_currentScene) {
diff --git a/engines/fullpipe/fullpipe.h b/engines/fullpipe/fullpipe.h
index cd7b120..2039989 100644
--- a/engines/fullpipe/fullpipe.h
+++ b/engines/fullpipe/fullpipe.h
@@ -225,6 +225,8 @@ public:
Common::Array<Common::Point> _arcadeKeys;
+ void deleteModalObject();
+
void initMap();
void updateMap(PreloadItem *pre);
void updateMapPiece(int mapId, int update);
diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h
index 1bc576c..9f5e408 100644
--- a/engines/fullpipe/modal.h
+++ b/engines/fullpipe/modal.h
@@ -51,6 +51,7 @@ class BaseModalObject {
BaseModalObject() : _parentObj(0) { _objtype = kObjTypeDefault; }
virtual ~BaseModalObject() {}
+ void deleteObject();
virtual bool pollEvent() = 0;
virtual bool handleMessage(ExCommand *message) = 0;
Commit: c0afab552ca4c6dc5c9e64bd3a8e847b776cdf89
https://github.com/scummvm/scummvm/commit/c0afab552ca4c6dc5c9e64bd3a8e847b776cdf89
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:54+01:00
Commit Message:
FULLPIPE: Fix bug #10325: New game does not put back already picked up items
Changed paths:
engines/fullpipe/gameloader.cpp
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index e6f5b08..b74f3b4 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -653,6 +653,8 @@ const char *getSavegameFile(int saveGameIdx) {
void GameLoader::restoreDefPicAniInfos() {
for (uint i = 0; i < _sc2array.size(); i++) {
+ _sc2array[i]._picAniInfos.clear();
+
if (_sc2array[i]._scene)
applyPicAniInfos(_sc2array[i]._scene, _sc2array[i]._defPicAniInfos);
}
Commit: 7d482d78cf882132b4d7cc3f558552a04c2b1bc7
https://github.com/scummvm/scummvm/commit/7d482d78cf882132b4d7cc3f558552a04c2b1bc7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:55+01:00
Commit Message:
FULLPIPE: Fix bug #10317: Save game metadata is missing
Changed paths:
engines/fullpipe/detection.cpp
engines/fullpipe/fullpipe.cpp
engines/fullpipe/gameloader.h
engines/fullpipe/messages.cpp
engines/fullpipe/modal.cpp
engines/fullpipe/stateloader.cpp
engines/fullpipe/statesaver.cpp
diff --git a/engines/fullpipe/detection.cpp b/engines/fullpipe/detection.cpp
index 82c7954..9dd1d6b 100644
--- a/engines/fullpipe/detection.cpp
+++ b/engines/fullpipe/detection.cpp
@@ -156,6 +156,7 @@ bool FullpipeMetaEngine::hasFeature(MetaEngineFeature f) const {
(f == kSavesSupportMetaInfo) ||
(f == kSavesSupportThumbnail) ||
(f == kSavesSupportCreationDate) ||
+ (f == kSavesSupportPlayTime) ||
(f == kSupportsLoadingDuringStartup) ||
(f == kSimpleSavesNames);
}
@@ -184,7 +185,14 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const {
if (in) {
Fullpipe::FullpipeSavegameHeader header;
Fullpipe::readSavegameHeader(in.get(), header);
- saveList.push_back(SaveStateDescriptor(slotNum, header.saveName));
+
+ SaveStateDescriptor desc;
+
+ parseSavegameHeader(header, desc);
+
+ desc.setSaveSlot(slotNum);
+
+ saveList.push_back(desc);
}
}
}
@@ -207,7 +215,11 @@ SaveStateDescriptor FullpipeMetaEngine::querySaveMetaInfos(const char *target, i
Fullpipe::readSavegameHeader(f.get(), header);
// Create the return descriptor
- SaveStateDescriptor desc(slot, header.saveName);
+ SaveStateDescriptor desc;
+
+ parseSavegameHeader(header, desc);
+
+ desc.setSaveSlot(slot);
desc.setThumbnail(header.thumbnail);
return desc;
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp
index f50593cc..ec2b5aa 100644
--- a/engines/fullpipe/fullpipe.cpp
+++ b/engines/fullpipe/fullpipe.cpp
@@ -239,7 +239,7 @@ Common::Error FullpipeEngine::loadGameState(int slot) {
}
Common::Error FullpipeEngine::saveGameState(int slot, const Common::String &description) {
- if (_gameLoader->writeSavegame(_currentScene, getSavegameFile(slot)))
+ if (_gameLoader->writeSavegame(_currentScene, getSavegameFile(slot), description))
return Common::kNoError;
else
return Common::kUnknownError;
diff --git a/engines/fullpipe/gameloader.h b/engines/fullpipe/gameloader.h
index f76a96f..03c3093 100644
--- a/engines/fullpipe/gameloader.h
+++ b/engines/fullpipe/gameloader.h
@@ -32,7 +32,7 @@
namespace Fullpipe {
-#define FULLPIPE_SAVEGAME_VERSION 1
+#define FULLPIPE_SAVEGAME_VERSION 2
class SceneTag;
class MctlCompound;
@@ -80,6 +80,7 @@ struct FullpipeSavegameHeader {
char id[6];
uint8 version;
Common::String saveName;
+ Common::String description;
uint32 date;
uint16 time;
uint32 playtime;
@@ -115,7 +116,7 @@ class GameLoader : public CObject {
PicAniInfoList savePicAniInfos(Scene *sc, int flag1, int flag2);
bool readSavegame(const char *fname);
- bool writeSavegame(Scene *sc, const char *fname);
+ bool writeSavegame(Scene *sc, const char *fname, const Common::String &description);
void addVar(GameVar *var, GameVar *subvar);
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index bd8dff8..f08397f 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -353,7 +353,7 @@ void MessageQueue::messageQueueCallback1(int par) {
}
if (g_fp->_currentScene)
- g_fp->_gameLoader->writeSavegame(g_fp->_currentScene, "savetmp.sav");
+ g_fp->_gameLoader->writeSavegame(g_fp->_currentScene, "savetmp.sav", "");
}
}
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 316369c..be1e73f 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -2285,7 +2285,7 @@ void ModalSaveGame::saveload() {
}
if (g_fp->_isSaveAllowed && allowed)
- g_fp->_gameLoader->writeSavegame(g_fp->_currentScene, getSaveName());
+ g_fp->_gameLoader->writeSavegame(g_fp->_currentScene, getSaveName(), "");
}
} else {
if (getSaveName()) {
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index 231379c..703190b 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -178,7 +178,7 @@ void parseSavegameHeader(Fullpipe::FullpipeSavegameHeader &header, SaveStateDesc
desc.setSaveTime(hour, minutes);
desc.setPlayTime(header.playtime * 1000);
- desc.setDescription(header.saveName);
+ desc.setDescription(header.description);
}
void fillDummyHeader(Fullpipe::FullpipeSavegameHeader &header) {
@@ -214,22 +214,23 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header)
}
header.version = in->readByte();
- if (header.version != FULLPIPE_SAVEGAME_VERSION) {
- in->seek(oldPos, SEEK_SET); // Rewind the file
- fillDummyHeader(header);
- return false;
- }
-
header.date = in->readUint32LE();
header.time = in->readUint16LE();
header.playtime = in->readUint32LE();
+ if (header.version > 1)
+ header.description = in->readPascalString();
+
// Generate savename
SaveStateDescriptor desc;
parseSavegameHeader(header, desc);
+
header.saveName = Common::String::format("%s %s", desc.getSaveDate().c_str(), desc.getSaveTime().c_str());
+ if (header.description.empty())
+ header.description = header.saveName;
+
// Get the thumbnail
header.thumbnail = Common::SharedPtr<Graphics::Surface>(Graphics::loadThumbnail(*in), Graphics::SurfaceDeleter());
diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp
index d06bd9c..942c07a 100644
--- a/engines/fullpipe/statesaver.cpp
+++ b/engines/fullpipe/statesaver.cpp
@@ -31,7 +31,7 @@
namespace Fullpipe {
-bool GameLoader::writeSavegame(Scene *sc, const char *fname) {
+bool GameLoader::writeSavegame(Scene *sc, const char *fname, const Common::String &description) {
GameVar *v = _gameVar->getSubVarByName("OBJSTATES")->getSubVarByName("SAVEGAME");
if (!v) {
@@ -146,6 +146,11 @@ bool GameLoader::writeSavegame(Scene *sc, const char *fname) {
saveFile->writeUint16LE(header2.time);
saveFile->writeUint32LE(header2.playtime);
+ // Added in save version 2
+ Common::String desc(description.c_str(), MIN(255u, description.size())); // Restrict description size
+ saveFile->writeByte(desc.size());
+ saveFile->writeString(desc);
+
g_fp->_currentScene->draw();
Graphics::saveThumbnail(*saveFile); // FIXME. Render proper screen
Commit: cfabb89eb5b8130393f8ada4c0b676aa574d501d
https://github.com/scummvm/scummvm/commit/cfabb89eb5b8130393f8ada4c0b676aa574d501d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:55+01:00
Commit Message:
FULLPIPE: Added more debug output to the class loading
Changed paths:
engines/fullpipe/messages.cpp
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index f08397f..48be017 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -56,6 +56,29 @@ ExCommand::ExCommand(int16 parentId, int messageKind, int messageNum, int x, int
_parId = 0;
}
+struct exDesc {
+ byte num;
+ const char *name;
+} static const exTypes[] = {
+ { 1, "START_MOVEMENT" },
+ { 5, "SHOW" },
+ { 17, "MESSAGE" },
+ { 63, "USER" },
+ { 0, "" }
+};
+
+static const char *exCommandType2str(int type) {
+ static char buf[10];
+
+ for (int i = 0; exTypes[i].num; i++)
+ if (exTypes[i].num == type)
+ return exTypes[i].name;
+
+ snprintf(buf, 10, "%d", type);
+
+ return buf;
+}
+
bool ExCommand::load(MfcArchive &file) {
debugC(5, kDebugLoading, "ExCommand::load()");
@@ -84,6 +107,10 @@ bool ExCommand::load(MfcArchive &file) {
_objtype = kObjTypeExCommand;
+ debugC(6, kDebugLoading, "%% <COMMAND parent=%d cmd=%s x=%d y=%d f14=%d sceneX=%d sceneY=%d f20=%d f24=%d param=%d f2c=%d f30=%d f34=%d num=%d flags=%d parId=%d />",
+ _parentId, exCommandType2str(_messageKind), _x, _y, _field_14, _sceneClickX, _sceneClickY, _field_20, _field_24, _param, _field_2C,
+ _field_30, _field_34, _messageNum, _excFlags, _parId);
+
return true;
}
@@ -213,6 +240,8 @@ bool ObjstateCommand::load(MfcArchive &file) {
_objCommandName = file.readPascalString();
+ debugC(6, kDebugLoading, "%% <COMMAND cmd=\"USER\" type=\"SET_LOGIC\" title=\"%s\" state=\"%d\" />", transCyrillic(_objCommandName.c_str()), _value);
+
return true;
}
Commit: 939a6d9bb8630dd5e09617ac3e3e4f803d4bf6c1
https://github.com/scummvm/scummvm/commit/939a6d9bb8630dd5e09617ac3e3e4f803d4bf6c1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-12-03T23:06:55+01:00
Commit Message:
FULLPIPE: Renames in ExCommand
Changed paths:
engines/fullpipe/anihandler.cpp
engines/fullpipe/gameloader.cpp
engines/fullpipe/interaction.cpp
engines/fullpipe/inventory.cpp
engines/fullpipe/lift.cpp
engines/fullpipe/messagehandlers.cpp
engines/fullpipe/messages.cpp
engines/fullpipe/messages.h
engines/fullpipe/motion.cpp
engines/fullpipe/scenes/scene04.cpp
engines/fullpipe/scenes/scene09.cpp
engines/fullpipe/scenes/scene11.cpp
engines/fullpipe/scenes/scene16.cpp
engines/fullpipe/scenes/scene25.cpp
engines/fullpipe/scenes/scene34.cpp
engines/fullpipe/scenes/scene35.cpp
engines/fullpipe/scenes/scene38.cpp
engines/fullpipe/sound.cpp
diff --git a/engines/fullpipe/anihandler.cpp b/engines/fullpipe/anihandler.cpp
index e556a8e..4ae870b 100644
--- a/engines/fullpipe/anihandler.cpp
+++ b/engines/fullpipe/anihandler.cpp
@@ -394,7 +394,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->_z = mkQueue->field_1C;
ex->_param = mkQueue->ani->_odelay;
ex->_field_24 = 0;
ex->_excFlags |= 3;
@@ -741,7 +741,7 @@ ExCommand2 *AniHandler::createCommand(Movement *mov, int objId, int x1, int y1,
ExCommand2 *ex = new ExCommand2(20, objId, points);
ex->_excFlags = 2;
ex->_messageNum = mov->_id;
- ex->_field_14 = len;
+ ex->_z = len;
ex->_field_24 = 1;
ex->_param = -1;
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index b74f3b4..ed9348e 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -226,7 +226,7 @@ bool GameLoader::gotoScene(int sceneId, int entranceId) {
ExCommand *ex = new ExCommand(stobj->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 0;
ex->_excFlags |= 3;
diff --git a/engines/fullpipe/interaction.cpp b/engines/fullpipe/interaction.cpp
index 38ca73b..686e4b1 100644
--- a/engines/fullpipe/interaction.cpp
+++ b/engines/fullpipe/interaction.cpp
@@ -188,7 +188,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ex->_y = obj->_odelay;
ex->_param = subj ? subj->_odelay : 0;
ex->_excFlags = 3;
- ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
+ ex->_z = (obj->_objtype != kObjTypePictureObject);
ex->_field_20 = invId;
mq->addExCommandToEnd(ex);
@@ -261,7 +261,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
if (!(inter->_flags & 0x10000)) {
ex = new ExCommand(obj->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
ex->_param = obj->_odelay;
- ex->_field_14 = 0x80;
+ ex->_z = 0x80;
ex->_messageNum = 0;
ex->_excFlags = 3;
mq->addExCommandToEnd(ex);
@@ -269,14 +269,14 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ex = new ExCommand(obj->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
ex->_param = obj->_odelay;
- ex->_field_14 = 0x100;
+ ex->_z = 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->_odelay;
- ex->_field_14 = 0x100;
+ ex->_z = 0x100;
ex->_messageNum = 0;
ex->_excFlags = 3;
mq->addExCommandToEnd(ex);
@@ -325,7 +325,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ex->_param = subj->_odelay;
ex->_excFlags = 3;
ex->_field_20 = invId;
- ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
+ ex->_z = (obj->_objtype != kObjTypePictureObject);
mq->addExCommandToEnd(ex);
someFlag = true;
@@ -335,7 +335,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ex->_y = ypos;
ex->_excFlags |= 3;
ex->_param = 6;
- ex->_field_14 = obj->_id;
+ ex->_z = obj->_id;
ex->_field_20 = obj->_odelay;
ex->postMessage();
}
@@ -366,7 +366,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ani->_flags |= 0x80u;
} else {
ex = new ExCommand(ani->_id, 34, 0x80, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 0x80;
+ ex->_z = 0x80;
ex->_param = ani->_odelay;
ex->_excFlags = 3;
mq->addExCommandToEnd(ex);
@@ -374,7 +374,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
}
ex = new ExCommand(ani->_id, 34, 0x100, 0, 0, 0, 1, 0, 0, 0);
ex->_param = ani->_odelay;
- ex->_field_14 = 0x100;
+ ex->_z = 0x100;
ex->_excFlags = 3;
mq->addExCommandToEnd(ex);
} else {
@@ -383,7 +383,7 @@ bool InteractionController::handleInteraction(StaticANIObject *subj, GameObject
ex->_y = ani->_odelay;
ex->_param = subj->_odelay;
ex->_excFlags = 2;
- ex->_field_14 = (obj->_objtype != kObjTypePictureObject);
+ ex->_z = (obj->_objtype != kObjTypePictureObject);
ex->_field_20 = invId;
mq->addExCommandToEnd(ex);
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index bba1284..bf3ff1e 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -361,7 +361,7 @@ void Inventory2::slideIn() {
ExCommand *ex = new ExCommand(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
ex->_field_2C = 10;
- ex->_field_14 = _isInventoryOut;
+ ex->_z = _isInventoryOut;
ex->_field_20 = !_isInventoryOut;
ex->_excFlags |= 3;
ex->postMessage();
@@ -373,7 +373,7 @@ void Inventory2::slideOut() {
ExCommand *ex = new ExCommand(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
ex->_field_2C = 10;
- ex->_field_14 = _isInventoryOut;
+ ex->_z = _isInventoryOut;
ex->_field_20 = !_isInventoryOut;
ex->_excFlags |= 3;
ex->postMessage();
@@ -396,7 +396,7 @@ bool Inventory2::handleLeftClick(ExCommand *cmd) {
if (getItemFlags(icon.inventoryItemId) & 1) {
ExCommand *ex = new ExCommand(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
ex->_field_2C = 11;
- ex->_field_14 = _inventoryIcons[i].inventoryItemId;
+ ex->_z = _inventoryIcons[i].inventoryItemId;
ex->_excFlags |= 3;
ex->postMessage();
}
diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp
index feee335..0baa9ef 100644
--- a/engines/fullpipe/lift.cpp
+++ b/engines/fullpipe/lift.cpp
@@ -233,7 +233,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
ExCommand *ex = new ExCommand(_aniMan->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 256;
ex->_excFlags |= 3;
mq->addExCommandToEnd(ex);
@@ -257,7 +257,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
ex->_param = _aniMan->_odelay;
- ex->_field_14 = 10;
+ ex->_z = 10;
ex->_x = -1;
ex->_y = -1;
ex->_excFlags |= 3;
@@ -265,7 +265,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) {
ex = new ExCommand(_aniMan->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3;
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 0;
mq->addExCommandToEnd(ex);
@@ -346,7 +346,7 @@ void FullpipeEngine::lift_walkAndGo() {
ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0);
ex->_param = _aniMan->_odelay;
- ex->_field_14 = _lift->_priority + 1;
+ ex->_z = _lift->_priority + 1;
ex->_x = -1;
ex->_y = -1;
ex->_excFlags |= 3;
@@ -465,7 +465,7 @@ void FullpipeEngine::lift_animateButton(StaticANIObject *button) {
ExCommand *ex = new ExCommand(0, 35, SND_CMN_032, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3;
- ex->_field_14 = 1;
+ ex->_z = 1;
ex->postMessage();
int id = lift_getButtonIdH(_lastLiftButton->_statics->_staticsId);
diff --git a/engines/fullpipe/messagehandlers.cpp b/engines/fullpipe/messagehandlers.cpp
index bd67fd4..5b440e3 100644
--- a/engines/fullpipe/messagehandlers.cpp
+++ b/engines/fullpipe/messagehandlers.cpp
@@ -250,7 +250,7 @@ int global_messageHandler1(ExCommand *cmd) {
g_fp->setCursor(g_fp->_cursorId);
break;
case 65: // open map
- if (cmd->_field_2C == 11 && cmd->_field_14 == ANI_INV_MAP && g_fp->_flgCanOpenMap)
+ if (cmd->_field_2C == 11 && cmd->_z == ANI_INV_MAP && g_fp->_flgCanOpenMap)
g_fp->openMap();
break;
default:
@@ -263,7 +263,7 @@ int global_messageHandler1(ExCommand *cmd) {
ExCommand *newex = new ExCommand(0, 35, SND_CMN_031, 0, 0, 0, 1, 0, 0, 0);
- newex->_field_14 = 1;
+ newex->_z = 1;
newex->_excFlags |= 3;
newex->postMessage();
@@ -291,19 +291,19 @@ int global_messageHandler2(ExCommand *cmd) {
switch (cmd->_messageNum) {
case 0x44c8:
error("0x44c8");
- // Unk3_sub_4477A0(&unk3, _parentId, _field_14 != 0);
+ // Unk3_sub_4477A0(&unk3, _parentId, _z != 0);
break;
case 28:
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (ani)
- ani->_priority = cmd->_field_14;
+ ani->_priority = cmd->_z;
break;
case 25:
ani = g_fp->_currentScene->getStaticANIObject1ById(cmd->_parentId, cmd->_param);
if (ani) {
- if (cmd->_field_14) {
+ if (cmd->_z) {
ani->setFlags40(true);
ani->_callback2 = staticANIObjectCallback;
} else {
@@ -379,7 +379,7 @@ int global_messageHandler3(ExCommand *cmd) {
return g_fp->_gameLoader->gotoScene(cmd->_parentId, cmd->_param);
case 64:
if (g_fp->_currentScene && g_fp->_msgObjectId2
- && (!(cmd->_param & 4) || g_fp->_msgObjectId2 != cmd->_field_14 || g_fp->_msgId != cmd->_field_20)) {
+ && (!(cmd->_param & 4) || g_fp->_msgObjectId2 != cmd->_z || g_fp->_msgId != cmd->_field_20)) {
ani = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_msgObjectId2, g_fp->_msgId);
if (ani) {
ani->_flags &= 0xFF7F;
@@ -396,7 +396,7 @@ int global_messageHandler3(ExCommand *cmd) {
g_fp->_msgY = cmd->_y;
}
if (cmd->_param & 4) {
- g_fp->_msgObjectId2 = cmd->_field_14;
+ g_fp->_msgObjectId2 = cmd->_z;
g_fp->_msgId = cmd->_field_20;
}
return result;
@@ -479,13 +479,13 @@ int global_messageHandler3(ExCommand *cmd) {
case 57:
if (cmd->_field_2C) {
if (!cmd->_field_20) {
- getGameLoaderInventory()->removeItem2(g_fp->_currentScene, cmd->_parentId, cmd->_x, cmd->_y, cmd->_field_14);
+ getGameLoaderInventory()->removeItem2(g_fp->_currentScene, cmd->_parentId, cmd->_x, cmd->_y, cmd->_z);
getGameLoaderInventory()->rebuildItemRects();
return 1;
}
ani = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_gameLoader->_field_FA, -1);
if (ani) {
- getGameLoaderInventory()->removeItem2(g_fp->_currentScene, cmd->_parentId, ani->_ox + cmd->_x, ani->_oy + cmd->_y, ani->_priority + cmd->_field_14);
+ getGameLoaderInventory()->removeItem2(g_fp->_currentScene, cmd->_parentId, ani->_ox + cmd->_x, ani->_oy + cmd->_y, ani->_priority + cmd->_z);
getGameLoaderInventory()->rebuildItemRects();
return 1;
}
@@ -497,7 +497,7 @@ int global_messageHandler3(ExCommand *cmd) {
case 55:
if (g_fp->_currentScene) {
GameObject *obj;
- if (cmd->_field_14)
+ if (cmd->_z)
obj = g_fp->_currentScene->getStaticANIObject1ById(cmd->_x, cmd->_y);
else
obj = g_fp->_currentScene->getPictureObjectById(cmd->_x, cmd->_y);
@@ -557,7 +557,7 @@ int global_messageHandler4(ExCommand *cmd) {
if (!ani)
break;
- int flags = cmd->_field_14;
+ int flags = cmd->_z;
if (flags <= 0)
flags = -1;
@@ -587,7 +587,7 @@ int global_messageHandler4(ExCommand *cmd) {
if (!ani)
break;
- int flags = cmd->_field_14;
+ int flags = cmd->_z;
if (flags <= 0)
flags = -1;
@@ -681,8 +681,8 @@ int global_messageHandler4(ExCommand *cmd) {
if (!ani)
break;
- if (cmd->_field_14 >= 0)
- ani->_priority = cmd->_field_14;
+ if (cmd->_z >= 0)
+ ani->_priority = cmd->_z;
ani->show1(cmd->_x, cmd->_y, cmd->_messageNum, cmd->_parId);
break;
@@ -695,8 +695,8 @@ int global_messageHandler4(ExCommand *cmd) {
if (!ani)
break;
- if (cmd->_field_14 >= 0)
- ani->_priority = cmd->_field_14;
+ if (cmd->_z >= 0)
+ ani->_priority = cmd->_z;
ani->show2(cmd->_x, cmd->_y, cmd->_messageNum, cmd->_parId);
break;
@@ -733,7 +733,7 @@ int global_messageHandler4(ExCommand *cmd) {
if (!ani)
break;
- ani->_flags = cmd->_messageNum | (ani->_flags & ~cmd->_field_14);
+ ani->_flags = cmd->_messageNum | (ani->_flags & ~cmd->_z);
break;
@@ -790,12 +790,12 @@ int MovGraph::messageHandler(ExCommand *cmd) {
MovGraphNode *node = link->_graphSrc;
double sq = (ani->_oy - node->_y) * (ani->_oy - node->_y) + (ani->_ox - node->_x) * (ani->_ox - node->_x);
- int off = (node->_field_14 >> 16) & 0xFF;
- double off2 = ((link->_graphDst->_field_14 >> 8) & 0xff) - off;
+ int off = (node->_z >> 16) & 0xFF;
+ double off2 = ((link->_graphDst->_z >> 8) & 0xff) - off;
top = off + (int)(sqrt(sq) * off2 / link->_length);
} else {
- top = (gr->calcOffset(ani->_ox, ani->_oy)->_field_14 >> 8) & 0xff;
+ top = (gr->calcOffset(ani->_ox, ani->_oy)->_z >> 8) & 0xff;
}
if (ani->_movement) {
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index 48be017..7c69ae8 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -86,7 +86,7 @@ bool ExCommand::load(MfcArchive &file) {
_messageKind = file.readUint32LE();
_x = file.readSint32LE();
_y = file.readSint32LE();
- _field_14 = file.readUint32LE();
+ _z = file.readUint32LE();
_sceneClickX = file.readUint32LE();
_sceneClickY = file.readUint32LE();
_field_20 = file.readUint32LE();
@@ -108,7 +108,7 @@ bool ExCommand::load(MfcArchive &file) {
_objtype = kObjTypeExCommand;
debugC(6, kDebugLoading, "%% <COMMAND parent=%d cmd=%s x=%d y=%d f14=%d sceneX=%d sceneY=%d f20=%d f24=%d param=%d f2c=%d f30=%d f34=%d num=%d flags=%d parId=%d />",
- _parentId, exCommandType2str(_messageKind), _x, _y, _field_14, _sceneClickX, _sceneClickY, _field_20, _field_24, _param, _field_2C,
+ _parentId, exCommandType2str(_messageKind), _x, _y, _z, _sceneClickX, _sceneClickY, _field_20, _field_24, _param, _field_2C,
_field_30, _field_34, _messageNum, _excFlags, _parId);
return true;
@@ -190,7 +190,7 @@ Message::Message() {
_x = 0;
_y = 0;
- _field_14 = 0;
+ _z = 0;
_sceneClickX = 0;
_sceneClickY = 0;
_field_20 = 0;
@@ -201,12 +201,12 @@ Message::Message() {
_field_34 = 0;
}
-Message::Message(int16 parentId, int messageKind, int x, int y, int a6, int a7, int sceneClickX, int sceneClickY, int a10) {
+Message::Message(int16 parentId, int messageKind, int x, int y, int z, int a7, int sceneClickX, int sceneClickY, int a10) {
_messageKind = messageKind;
_parentId = parentId;
_x = x;
_y = y;
- _field_14 = a6;
+ _z = z;
_sceneClickX = sceneClickX;
_sceneClickY = sceneClickY;
_field_24 = a7;
@@ -582,8 +582,8 @@ int MessageQueue::calcDuration(StaticANIObject *obj) {
if (ex->_parentId == obj->_id) {
if (ex->_messageKind == 1 || ex->_messageKind == 20) {
if ((mov = obj->getMovementById(ex->_messageNum)) != 0) {
- if (ex->_field_14 >= 1)
- res += ex->_field_14;
+ if (ex->_z >= 1)
+ res += ex->_z;
else
res += mov->calcDuration();
}
@@ -958,7 +958,7 @@ void postExCommand(int parentId, int keyCode, int x, int y, int f20, int f14) {
ex->_x = x;
ex->_y = y;
ex->_field_20 = f20;
- ex->_field_14 = f14;
+ ex->_z = f14;
ex->postMessage();
}
diff --git a/engines/fullpipe/messages.h b/engines/fullpipe/messages.h
index 71ec962..555fa68 100644
--- a/engines/fullpipe/messages.h
+++ b/engines/fullpipe/messages.h
@@ -41,7 +41,7 @@ class Message : public CObject {
int16 _parentId;
int _x;
int _y;
- int _field_14;
+ int _z;
int _sceneClickX;
int _sceneClickY;
int _field_20;
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index a6c55bf..d907c3d 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -944,7 +944,7 @@ MessageQueue *MovGraph::startMove(StaticANIObject *ani, int xpos, int ypos, int
ExCommand *ex = mq->getExCommandByIndex(0);
if ((ex->_messageKind != 1 && ex->_messageKind != 20) || ex->_messageNum != ani->_movement->_id ||
- (ex->_field_14 >= 1 && ex->_field_14 <= ani->_movement->_currDynamicPhaseIndex)) {
+ (ex->_z >= 1 && ex->_z <= ani->_movement->_currDynamicPhaseIndex)) {
mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
ex = new ExCommand(ani->_id, 21, 0, 0, 0, 0, 1, 0, 0, 0);
@@ -970,7 +970,7 @@ MessageQueue *MovGraph::startMove(StaticANIObject *ani, int xpos, int ypos, int
int count2;
- ani->setSomeDynamicPhaseIndex(ex->_field_14);
+ ani->setSomeDynamicPhaseIndex(ex->_z);
getPaths(ani, xpos, ypos, fuzzyMatch, &count2);
int idx = getObjectIndex(ani);
@@ -1079,7 +1079,7 @@ MessageQueue *MovGraph::makeQueue(StaticANIObject *subj, int xpos, int ypos, int
if ((ex->_messageKind != 1 && ex->_messageKind != 20) ||
ex->_messageNum != subj->_movement->_id ||
- (ex->_field_14 >= 1 && ex->_field_14 <= subj->_movement->_currDynamicPhaseIndex))
+ (ex->_z >= 1 && ex->_z <= subj->_movement->_currDynamicPhaseIndex))
subj->playIdle();
}
}
@@ -1988,7 +1988,7 @@ MessageQueue *MctlGraph::makeWholeQueue(MctlMQ &mctlMQ) {
ex->_excFlags |= 2;
ex->_param = _items2[mctlMQ.index]._obj->_odelay;
ex->_field_24 = 1;
- ex->_field_14 = -1;
+ ex->_z = -1;
mq->addExCommandToEnd(ex);
curX += mg2i->_mx;
@@ -2234,7 +2234,7 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
ex = new ExCommand(picAniInfo.objectId, 5, -1, obj->_ox, obj->_oy, 0, 1, 0, 0, 0);
- ex->_field_14 = -1;
+ ex->_z = -1;
ex->_param = picAniInfo.field_8;
ex->_excFlags |= 3;
mq->addExCommandToEnd(ex);
@@ -2353,11 +2353,11 @@ MessageQueue *MctlGraph::makeQueue(StaticANIObject *obj, int xpos, int ypos, int
if (ex && (ex->_messageKind == 1 || ex->_messageKind == 20)
&& picAniInfo.movementId == ex->_messageNum
- && picAniInfo.someDynamicPhaseIndex == ex->_field_14) {
+ && picAniInfo.someDynamicPhaseIndex == ex->_z) {
mq->deleteExCommandByIndex(0, 1);
} else {
ex = new ExCommand(picAniInfo.objectId, 5, ex->_messageNum, obj->_ox, obj->_oy, 0, 1, 0, 0, 0);
- ex->_field_14 = -1;
+ ex->_z = -1;
ex->_param = picAniInfo.field_8;
ex->_excFlags |= 2;
mq->addExCommand(ex);
@@ -2576,7 +2576,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
0,
0);
- ex->_field_14 = info->distance1;
+ ex->_z = info->distance1;
ex->_param = _items2[info->index]._obj->_odelay;
ex->_field_24 = 1;
@@ -2594,7 +2594,7 @@ MessageQueue *MctlGraph::makeLineQueue(MctlMQ *info) {
0,
0);
- ex->_field_14 = info->distance1;
+ ex->_z = info->distance1;
ex->_param = _items2[info->index]._obj->_odelay;
ex->_field_24 = 1;
@@ -2652,7 +2652,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->_z = info->distance2;
ex->_param = _items2[info->index]._obj->_odelay;
ex->_field_24 = 0;
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 0d27313..45ada3e 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -518,7 +518,7 @@ void sceneHandler04_gotoLadder(ExCommand *ex) {
mq->addExCommandToEnd(ex2);
ExCommand *ex3 = new ExCommand(g_fp->_aniMan->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
- ex3->_field_14 = 256;
+ ex3->_z = 256;
ex3->_messageNum = 0;
ex3->_excFlags |= 3;
mq->addExCommandToEnd(ex3);
@@ -1602,7 +1602,7 @@ int sceneHandler04(ExCommand *ex) {
exnew = new ExCommand(0, 35, SND_4_012, 0, 0, 0, 1, 0, 0, 0);
}
- exnew->_field_14 = 5;
+ exnew->_z = 5;
exnew->_excFlags |= 2;
exnew->postMessage();
break;
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index eab6cf6..17dfc4a 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -404,7 +404,7 @@ void sceneHandler09_hangerStartCycle() {
if (g_vars->scene09_intHangerMaxPhase != -1000 && g_vars->scene09_hangers[g_vars->scene09_interactingHanger]->phase != g_vars->scene09_intHangerMaxPhase) {
ExCommand *ex = new ExCommand(0, 35, SND_9_019, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 1;
+ ex->_z = 1;
ex->_excFlags |= 2;
ex->postMessage();
@@ -555,7 +555,7 @@ int sceneHandler09(ExCommand *cmd) {
ExCommand *ex = new ExCommand(0, 35, SND_9_018, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 1;
+ ex->_z = 1;
ex->_excFlags |= 2;
ex->postMessage();
}
diff --git a/engines/fullpipe/scenes/scene11.cpp b/engines/fullpipe/scenes/scene11.cpp
index 6a08677..7fb158b 100644
--- a/engines/fullpipe/scenes/scene11.cpp
+++ b/engines/fullpipe/scenes/scene11.cpp
@@ -316,7 +316,7 @@ void sceneHandler11_jumpFromSwing() {
MessageQueue *mq = new MessageQueue(g_fp->_globalMessageQueueList->compact());
ExCommand *ex = new ExCommand(g_fp->_aniMan->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 0;
ex->_excFlags |= 3;
mq->addExCommandToEnd(ex);
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index 04de100..2441d4e 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -262,7 +262,7 @@ void sceneHandler16_drink() {
ex = new ExCommand(ANI_MAN, 34, 384, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3u;
- ex->_field_14 = 384;
+ ex->_z = 384;
ex->_messageNum = 0;
mq->insertExCommandAt(2, ex);
@@ -275,7 +275,7 @@ void sceneHandler16_drink() {
ex = new ExCommand(ANI_MAN, 34, 256, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 3u;
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 0;
mq->addExCommandToEnd(ex);
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp
index 6871f37..d3e3b65 100644
--- a/engines/fullpipe/scenes/scene25.cpp
+++ b/engines/fullpipe/scenes/scene25.cpp
@@ -489,7 +489,7 @@ void sceneHandler25_walkOnLadder(StaticANIObject *ani, Common::Point *pnt, Messa
ex = new ExCommand(ani->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_14 = 256;
+ ex->_z = 256;
ex->_messageNum = 0;
ex->_excFlags |= 3;
diff --git a/engines/fullpipe/scenes/scene34.cpp b/engines/fullpipe/scenes/scene34.cpp
index b51715a..5856cdd 100644
--- a/engines/fullpipe/scenes/scene34.cpp
+++ b/engines/fullpipe/scenes/scene34.cpp
@@ -180,7 +180,7 @@ void sceneHandler34_fromCactus(ExCommand *cmd) {
ex->_messageNum = 0;
ex->_excFlags |= 3;
- ex->_field_14 = 256;
+ ex->_z = 256;
mq->addExCommandToEnd(ex);
ex = cmd->createClone();
diff --git a/engines/fullpipe/scenes/scene35.cpp b/engines/fullpipe/scenes/scene35.cpp
index abeffbe..b23a639 100644
--- a/engines/fullpipe/scenes/scene35.cpp
+++ b/engines/fullpipe/scenes/scene35.cpp
@@ -97,7 +97,7 @@ void sceneHandler35_startFlow() {
ExCommand *cmd = new ExCommand(g_vars->scene35_bellyInflater->_id, 34, 256, 0, 0, 0, 1, 0, 0, 0);
cmd->_excFlags |= 3;
- cmd->_field_14 = 256;
+ cmd->_z = 256;
cmd->_messageNum = 0;
mq->addExCommandToEnd(cmd);
diff --git a/engines/fullpipe/scenes/scene38.cpp b/engines/fullpipe/scenes/scene38.cpp
index 3bcbabe..3ff3558 100644
--- a/engines/fullpipe/scenes/scene38.cpp
+++ b/engines/fullpipe/scenes/scene38.cpp
@@ -44,7 +44,7 @@ void scene38_setBottleState(Scene *sc) {
ex = sc->getMessageQueueById(QU_SC38_SHOWBOTTLE)->getExCommandByIndex(0);
g_vars->scene38_bottle->setOXY(ex->_x, ex->_y);
- g_vars->scene38_bottle->_priority = ex->_field_14;
+ g_vars->scene38_bottle->_priority = ex->_z;
g_fp->setObjectState(sO_Bottle_38, g_fp->getObjectEnumState(sO_Bottle_38, sO_Blocked));
}
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index 31e3580..49ebc47 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -470,8 +470,8 @@ void global_messageHandler_handleSound(ExCommand *cmd) {
if (!snd)
return;
- if (cmd->_field_14 & 1) {
- if (!g_fp->_flgSoundList && (cmd->_field_14 & 4))
+ if (cmd->_z & 1) {
+ if (!g_fp->_flgSoundList && (cmd->_z & 4))
snd->freeSound();
snd->updateVolume();
@@ -483,7 +483,7 @@ void global_messageHandler_handleSound(ExCommand *cmd) {
if (snd->getVolume() > -3500)
snd->play(cmd->_param);
- } else if (cmd->_field_14 & 2) {
+ } else if (cmd->_z & 2) {
snd->stop();
}
}
More information about the Scummvm-git-logs
mailing list