[Scummvm-git-logs] scummvm master -> 82c6306443b014e4e8b39996867c843d9b1e5a51

AndywinXp noreply at scummvm.org
Wed Nov 30 20:40:23 UTC 2022


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:
82c6306443 SCUMM: Formatting


Commit: 82c6306443b014e4e8b39996867c843d9b1e5a51
    https://github.com/scummvm/scummvm/commit/82c6306443b014e4e8b39996867c843d9b1e5a51
Author: AndywinXp (andywinxp at gmail.com)
Date: 2022-11-30T21:40:13+01:00

Commit Message:
SCUMM: Formatting

Changed paths:
    engines/scumm/script_v4.cpp


diff --git a/engines/scumm/script_v4.cpp b/engines/scumm/script_v4.cpp
index 7c2e827c00e..b638cd2dad7 100644
--- a/engines/scumm/script_v4.cpp
+++ b/engines/scumm/script_v4.cpp
@@ -219,9 +219,9 @@ void ScummEngine_v4::loadVars() {
 
 			int slot;
 			int slotSize;
-			byte* slotContent;
+			byte *slotContent;
 			int savegameId;
-			bool avail_saves[100];
+			bool availSaves[100];
 
 			if (a == STRINGID_IQ_SERIES && b == STRINGID_IQ_SERIES) {
 				// Zak256 loads the IQ script-slot but does not use it -> ignore it
@@ -235,7 +235,7 @@ void ScummEngine_v4::loadVars() {
 				break;
 			}
 
-			listSavegames(avail_saves, ARRAYSIZE(avail_saves));
+			listSavegames(availSaves, ARRAYSIZE(availSaves));
 			for (slot = a; slot <= b; ++slot) {
 				slotSize = getResourceSize(rtString, slot);
 				slotContent = getResourceAddress(rtString, slot);
@@ -243,7 +243,7 @@ void ScummEngine_v4::loadVars() {
 				// load savegame names
 				savegameId = slot - a + 1;
 				Common::String name;
-				if (avail_saves[savegameId] && getSavegameName(savegameId, name)) {
+				if (availSaves[savegameId] && getSavegameName(savegameId, name)) {
 					int pos;
 					const char *ptr = name.c_str();
 					// slotContent ends with {'\0','@'} -> max. length = slotSize-2




More information about the Scummvm-git-logs mailing list