[Scummvm-git-logs] scummvm master -> aa36922fde8dd8a20d02b2ecb86319ca8f4cbe5b
Strangerke
noreply at scummvm.org
Fri Apr 3 22:05:51 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:
aa36922fde WAYNESWORLD: Janitorial: Constify some arrays in intro
Commit: aa36922fde8dd8a20d02b2ecb86319ca8f4cbe5b
https://github.com/scummvm/scummvm/commit/aa36922fde8dd8a20d02b2ecb86319ca8f4cbe5b
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2026-04-04T00:05:42+02:00
Commit Message:
WAYNESWORLD: Janitorial: Constify some arrays in intro
Changed paths:
engines/waynesworld/intro.cpp
diff --git a/engines/waynesworld/intro.cpp b/engines/waynesworld/intro.cpp
index 16f9b2823b6..71eaff48949 100644
--- a/engines/waynesworld/intro.cpp
+++ b/engines/waynesworld/intro.cpp
@@ -52,10 +52,10 @@ void WaynesWorldEngine::runIntro() {
}
bool WaynesWorldEngine::introPt1() {
- static int16 array1[] = {179, 179, 181, 183, 186, 189, 192, 198, 208, 212, 217, 223, 234, 233, 236, 240, 241, 238, 238, 238, 225, 218, 218, 192, 164, 133, 103, 87};
- static int16 array2[] = {97, 97, 98, 98, 97, 96, 94, 91, 88, 85, 84, 82, 81, 78, 76, 76, 75, 74, 72, 72, 71, 69, 68, 68, 67, 67, 66, 68};
- static int16 array3[] = {80, 80, 69, 37, 0, 0, 0, 0};
- static int16 array4[] = {67, 67, 64, 54, 41, 27, 27, 27};
+ static const int16 array1[] = {179, 179, 181, 183, 186, 189, 192, 198, 208, 212, 217, 223, 234, 233, 236, 240, 241, 238, 238, 238, 225, 218, 218, 192, 164, 133, 103, 87};
+ static const int16 array2[] = {97, 97, 98, 98, 97, 96, 94, 91, 88, 85, 84, 82, 81, 78, 76, 76, 75, 74, 72, 72, 71, 69, 68, 68, 67, 67, 66, 68};
+ static const int16 array3[] = {80, 80, 69, 37, 0, 0, 0, 0};
+ static const int16 array4[] = {67, 67, 64, 54, 41, 27, 27, 27};
GxlArchive *oa2Gxl = new GxlArchive("oa2");
loadPalette(oa2Gxl, "paramnt.pcx");
@@ -289,9 +289,9 @@ bool WaynesWorldEngine::introPt3(bool flag) {
}
byte newColor[3] = {0, 0, 0};
- static byte rArr[] = { 9, 9, 9, 9, 43, 43, 53, 63, 63, 63, 63, 63, 63, 63, 45, 28, 9, 9, 9};
- static byte gArr[] = {33, 33, 40, 47, 47, 47, 47, 47, 35, 23, 0, 0, 0, 0, 0, 0, 0, 33, 33};
- static byte bArr[] = {29, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 23, 37, 50, 50, 50, 50, 50, 40};
+ static const byte rArr[] = { 9, 9, 9, 9, 43, 43, 53, 63, 63, 63, 63, 63, 63, 63, 45, 28, 9, 9, 9};
+ static const byte gArr[] = {33, 33, 40, 47, 47, 47, 47, 47, 35, 23, 0, 0, 0, 0, 0, 0, 0, 33, 33};
+ static const byte bArr[] = {29, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 23, 37, 50, 50, 50, 50, 50, 40};
for (int i = 0; i < 32; ++i) {
const int index = (i % 19);
More information about the Scummvm-git-logs
mailing list