[Scummvm-git-logs] scummvm master -> ef3b6c5fbbcf42ed69bc48d25bef37be2de414e5
bluegr
noreply at scummvm.org
Thu Aug 1 17:16:41 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ef3b6c5fbb JANITORIAL: DGDS: Fix typos in comments/warnings
Commit: ef3b6c5fbbcf42ed69bc48d25bef37be2de414e5
https://github.com/scummvm/scummvm/commit/ef3b6c5fbbcf42ed69bc48d25bef37be2de414e5
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2024-08-01T20:16:37+03:00
Commit Message:
JANITORIAL: DGDS: Fix typos in comments/warnings
Changed paths:
engines/dgds/ads.cpp
engines/dgds/dgds.cpp
engines/dgds/inventory.cpp
engines/dgds/scene.cpp
engines/dgds/sound.cpp
diff --git a/engines/dgds/ads.cpp b/engines/dgds/ads.cpp
index e8a8c817b03..924c38056ed 100644
--- a/engines/dgds/ads.cpp
+++ b/engines/dgds/ads.cpp
@@ -405,7 +405,7 @@ bool ADSInterpreter::handleLogicOp(uint16 code, Common::SeekableReadStream *scr)
seq = findTTMSeq(enviro, seqnum);
env = findTTMEnviro(enviro);
if (!seq) {
- warning("ADS if op referenced non-existant env %d seq %d", enviro, seqnum);
+ warning("ADS if op referenced non-existent env %d seq %d", enviro, seqnum);
return false;
}
} else {
diff --git a/engines/dgds/dgds.cpp b/engines/dgds/dgds.cpp
index db433cf0df0..a9762cc4a0f 100644
--- a/engines/dgds/dgds.cpp
+++ b/engines/dgds/dgds.cpp
@@ -165,7 +165,7 @@ bool DgdsEngine::changeScene(int sceneNum) {
const Common::String sceneFile = Common::String::format("S%d.SDS", sceneNum);
if (!_resource->hasResource(sceneFile)) {
- warning("Tried to switch to non-existant scene %d", sceneNum);
+ warning("Tried to switch to non-existent scene %d", sceneNum);
return false;
}
@@ -725,7 +725,7 @@ Common::Error DgdsEngine::syncGame(Common::Serializer &s) {
// load and prepare scene data before syncing the rest of the state
const Common::String sceneFile = Common::String::format("S%d.SDS", sceneNum);
if (!_resource->hasResource(sceneFile))
- error("Game references non-existant scene %d", sceneNum);
+ error("Game references non-existent scene %d", sceneNum);
_soundPlayer->unloadMusic();
_soundPlayer->stopAllSfx();
diff --git a/engines/dgds/inventory.cpp b/engines/dgds/inventory.cpp
index 6cd2ab7f65f..f6bebf85ed0 100644
--- a/engines/dgds/inventory.cpp
+++ b/engines/dgds/inventory.cpp
@@ -43,7 +43,7 @@ Inventory::Inventory() : _isOpen(false), _prevPageBtn(nullptr), _nextPageBtn(nul
}
void Inventory::open() {
- // Allow double-open becuase that's how the inventory shows item
+ // Allow double-open because that's how the inventory shows item
// descriptions.
_isOpen = true;
DgdsEngine *engine = DgdsEngine::getInstance();
diff --git a/engines/dgds/scene.cpp b/engines/dgds/scene.cpp
index ddab4f995d7..70a9034c328 100644
--- a/engines/dgds/scene.cpp
+++ b/engines/dgds/scene.cpp
@@ -2000,7 +2000,7 @@ Common::Error SDSScene::syncState(Common::Serializer &s) {
// at this point we are already loaded.
assert(_num);
- // The dialogs and triggers are stateful, everthing else is stateless.
+ // The dialogs and triggers are stateful, everything else is stateless.
uint16 ndlgs = _dialogs.size();
s.syncAsUint16LE(ndlgs);
if (_dialogs.size() && ndlgs != _dialogs.size()) {
diff --git a/engines/dgds/sound.cpp b/engines/dgds/sound.cpp
index 9cf90baed39..7b28f18a533 100644
--- a/engines/dgds/sound.cpp
+++ b/engines/dgds/sound.cpp
@@ -284,7 +284,7 @@ void Sound::loadMacMusic(const Common::String &filename) {
} else if (chunk.isSection(ID_TAG) || chunk.isSection(ID_FNM)) {
_readStrings(stream);
} else if (chunk.isSection(ID_DAT)) {
- // TODO: Should we record the indexes?
+ // TODO: Should we record the indices?
/*uint16 idx = */ stream->readUint16LE();
/*uint16 type = */ stream->readUint16LE();
uint32 sz;
More information about the Scummvm-git-logs
mailing list