[Scummvm-git-logs] scummvm master -> 089288d806dc3ce67fd9b78373c27eaa5b1b1361
bluegr
noreply at scummvm.org
Sat Aug 10 08:39:38 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:
089288d806 JANITORIAL: HUGO: Fix typos in comments
Commit: 089288d806dc3ce67fd9b78373c27eaa5b1b1361
https://github.com/scummvm/scummvm/commit/089288d806dc3ce67fd9b78373c27eaa5b1b1361
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2024-08-10T11:39:35+03:00
Commit Message:
JANITORIAL: HUGO: Fix typos in comments
Changed paths:
engines/hugo/display.cpp
engines/hugo/object_v1d.cpp
engines/hugo/object_v1w.cpp
engines/hugo/object_v2d.cpp
engines/hugo/route.cpp
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index e8078f4d9aa..ff5a3242930 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -188,7 +188,7 @@ void Screen::displayRect(const int16 x, const int16 y, const int16 dx, const int
/**
* Change a color by remapping supplied palette index with new index in main palette.
- * Alse save the new color in the current palette.
+ * Also save the new color in the current palette.
*/
void Screen::remapPal(const uint16 oldIndex, const uint16 newIndex) {
debugC(1, kDebugDisplay, "RemapPal(%d, %d)", oldIndex, newIndex);
diff --git a/engines/hugo/object_v1d.cpp b/engines/hugo/object_v1d.cpp
index d3cc679f500..5416df9e192 100644
--- a/engines/hugo/object_v1d.cpp
+++ b/engines/hugo/object_v1d.cpp
@@ -127,7 +127,7 @@ void ObjectHandler_v1d::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr->_nextSeqPtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb) { // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb) { // Decr cycleNumb if Non-continuous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
@@ -148,7 +148,7 @@ void ObjectHandler_v1d::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb){ // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb){ // Decr cycleNumb if Non-contiunous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
diff --git a/engines/hugo/object_v1w.cpp b/engines/hugo/object_v1w.cpp
index 683b38bd8df..21c26f621a3 100644
--- a/engines/hugo/object_v1w.cpp
+++ b/engines/hugo/object_v1w.cpp
@@ -125,7 +125,7 @@ void ObjectHandler_v1w::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr->_nextSeqPtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb) { // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb) { // Decr cycleNumb if Non-continuous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
@@ -146,7 +146,7 @@ void ObjectHandler_v1w::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb){ // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb){ // Decr cycleNumb if Non-continuous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
diff --git a/engines/hugo/object_v2d.cpp b/engines/hugo/object_v2d.cpp
index 9155615c93f..23db45148ee 100644
--- a/engines/hugo/object_v2d.cpp
+++ b/engines/hugo/object_v2d.cpp
@@ -59,7 +59,7 @@ void ObjectHandler_v2d::updateImages() {
// Initialize the index array to visible objects in current screen
int objNumb = 0;
- byte objindex[kMaxObjNumb]; // Array of indeces to objects
+ byte objindex[kMaxObjNumb]; // Array of indices to objects
for (int i = 0; i < _numObj; i++) {
Object *obj = &_objects[i];
@@ -127,7 +127,7 @@ void ObjectHandler_v2d::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr->_nextSeqPtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb) { // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb) { // Decr cycleNumb if Non-continuous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
@@ -148,7 +148,7 @@ void ObjectHandler_v2d::updateImages() {
obj->_frameTimer = obj->_frameInterval;
for (int j = 0; j < obj->_seqNumb; j++) {
if (obj->_currImagePtr == obj->_seqList[j]._seqPtr) {
- if (obj->_cycleNumb){ // Decr cycleNumb if Non-continous
+ if (obj->_cycleNumb){ // Decr cycleNumb if Non-continuous
if (!--obj->_cycleNumb)
obj->_cycling = kCycleNotCycling;
}
diff --git a/engines/hugo/route.cpp b/engines/hugo/route.cpp
index 38a7fba3ea4..ba8a3daff6a 100644
--- a/engines/hugo/route.cpp
+++ b/engines/hugo/route.cpp
@@ -109,7 +109,7 @@ void Route::setWalk(const uint16 direction) {
return;
if (!obj->_vx && !obj->_vy)
- _oldWalkDirection = 0; // Fix for consistant restarts
+ _oldWalkDirection = 0; // Fix for consistent restarts
if (direction != _oldWalkDirection) {
// Direction has changed
More information about the Scummvm-git-logs
mailing list