[Scummvm-git-logs] scummvm master -> 6c1bf52fec75ae907a786330701a934732afb60a
sev-
noreply at scummvm.org
Sun Nov 22 19:57:04 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
6c1bf52fec NGI: Renames in class Message
Commit: 6c1bf52fec75ae907a786330701a934732afb60a
https://github.com/scummvm/scummvm/commit/6c1bf52fec75ae907a786330701a934732afb60a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-11-22T20:56:28+01:00
Commit Message:
NGI: Renames in class Message
_field_2C -> _auxParam
_field_30 -> _oneShot
_field_34 -> _armed
Changed paths:
engines/ngi/inventory.cpp
engines/ngi/messagehandlers.cpp
engines/ngi/messages.cpp
engines/ngi/messages.h
diff --git a/engines/ngi/inventory.cpp b/engines/ngi/inventory.cpp
index b9cbde63b91..8a1fa51f582 100644
--- a/engines/ngi/inventory.cpp
+++ b/engines/ngi/inventory.cpp
@@ -359,7 +359,7 @@ void Inventory::slideIn() {
Command *ex = new Command(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_2C = 10;
+ ex->_auxParam = 10;
ex->_z = _isInventoryOut;
ex->_invId = !_isInventoryOut;
ex->_excFlags |= 3;
@@ -371,7 +371,7 @@ void Inventory::slideOut() {
Command *ex = new Command(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_2C = 10;
+ ex->_auxParam = 10;
ex->_z = _isInventoryOut;
ex->_invId = !_isInventoryOut;
ex->_excFlags |= 3;
@@ -394,7 +394,7 @@ bool Inventory::onMouseLKeyDown(Command *cmd) {
}
if (getItemFlags(icon.inventoryItemId) & 1) {
Command *ex = new Command(0, 17, 65, 0, 0, 0, 1, 0, 0, 0);
- ex->_field_2C = 11;
+ ex->_auxParam = 11;
ex->_z = _inventoryIcons[i].inventoryItemId;
ex->_excFlags |= 3;
ex->postMessage();
diff --git a/engines/ngi/messagehandlers.cpp b/engines/ngi/messagehandlers.cpp
index a2dd673dc56..d62a7013288 100644
--- a/engines/ngi/messagehandlers.cpp
+++ b/engines/ngi/messagehandlers.cpp
@@ -245,7 +245,7 @@ int global_messageHandler1(Command *cmd) {
g_nmi->setCursor(g_nmi->_cursorId);
break;
case 65: // open map
- if (cmd->_field_2C == 11 && cmd->_z == ANI_INV_MAP && g_nmi->_flgCanOpenMap)
+ if (cmd->_auxParam == 11 && cmd->_z == ANI_INV_MAP && g_nmi->_flgCanOpenMap)
g_nmi->openMap();
break;
default:
@@ -459,7 +459,7 @@ int global_messageHandler3(Command *cmd) {
setInputDisabled(0);
return result;
case 56:
- if (cmd->_field_2C) {
+ if (cmd->_auxParam) {
ani = g_nmi->_currentScene->findAniObjectById(cmd->_parentId, cmd->_param);
if (ani) {
getGameLoaderInventory()->addItem2(ani);
@@ -472,7 +472,7 @@ int global_messageHandler3(Command *cmd) {
getGameLoaderInventory()->recalcItemPos();
return result;
case 57:
- if (cmd->_field_2C) {
+ if (cmd->_auxParam) {
if (!cmd->_invId) {
getGameLoaderInventory()->removeItem2(g_nmi->_currentScene, cmd->_parentId, cmd->_x, cmd->_y, cmd->_z);
getGameLoaderInventory()->recalcItemPos();
diff --git a/engines/ngi/messages.cpp b/engines/ngi/messages.cpp
index 016e1f5bc4b..4dd17ab6e6e 100644
--- a/engines/ngi/messages.cpp
+++ b/engines/ngi/messages.cpp
@@ -91,9 +91,9 @@ bool Command::load(MfcArchive &file) {
_invId = file.readUint32LE();
_wait = file.readUint32LE();
_param = file.readUint32LE();
- _field_2C = file.readUint32LE();
- _field_30 = file.readUint32LE();
- _field_34 = file.readUint32LE();
+ _auxParam = file.readUint32LE();
+ _oneShot = file.readUint32LE();
+ _armed = file.readUint32LE();
_messageNum = file.readUint32LE();
@@ -107,8 +107,8 @@ bool Command::load(MfcArchive &file) {
_objtype = kObjTypeExCommand;
debugC(6, kDebugXML, "%% <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(_cmd), _x, _y, _z, _sceneClickX, _sceneClickY, _invId, _wait, _param, _field_2C,
- _field_30, _field_34, _messageNum, _excFlags, _parId);
+ _parentId, exCommandType2str(_cmd), _x, _y, _z, _sceneClickX, _sceneClickY, _invId, _wait, _param, _auxParam,
+ _oneShot, _armed, _messageNum, _excFlags, _parId);
return true;
}
@@ -156,18 +156,18 @@ void Command::setf3c(int val) {
if (val != -1)
_field_3C = val;
- _field_34 = 1;
+ _armed = 1;
}
void Command::firef34() {
- if (_field_34) {
+ if (_armed) {
if (_field_3C >= _param) {
- _field_34 = 0;
+ _armed = 0;
sendMessage();
- if (!_field_30 )
- setf3c(_field_2C);
+ if (!_oneShot )
+ setf3c(_auxParam);
}
}
}
@@ -195,9 +195,9 @@ Message::Message() {
_invId = 0;
_wait = 0;
_param = 0;
- _field_2C = 0;
- _field_30 = 0;
- _field_34 = 0;
+ _auxParam = 0;
+ _oneShot = 0;
+ _armed = 0;
}
Message::Message(int16 parentId, int messageKind, int x, int y, int z, int a7, int sceneClickX, int sceneClickY, int a10) {
@@ -211,9 +211,9 @@ Message::Message(int16 parentId, int messageKind, int x, int y, int z, int a7, i
_wait = a7;
_invId = a10;
_param = 0;
- _field_2C = 0;
- _field_30 = 0;
- _field_34 = 0;
+ _auxParam = 0;
+ _oneShot = 0;
+ _armed = 0;
}
ObjstateCommand::ObjstateCommand() {
diff --git a/engines/ngi/messages.h b/engines/ngi/messages.h
index c64bdf43ebb..7dcbeef7123 100644
--- a/engines/ngi/messages.h
+++ b/engines/ngi/messages.h
@@ -46,9 +46,9 @@ class Message : public CObject {
int _invId;
int _wait;
int _param;
- int _field_2C;
- int _field_30;
- int _field_34;
+ int _auxParam;
+ int _oneShot;
+ int _armed;
public:
Message();
More information about the Scummvm-git-logs
mailing list