[Scummvm-git-logs] scummvm master -> 272a2fd4be1b69daecb1a3b23d89fa9c7453327f
digitall
noreply at scummvm.org
Tue Jun 11 22:55:04 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:
272a2fd4be FREESCAPE: Fix Missing Braces In Initializer GCC Compiler Warning
Commit: 272a2fd4be1b69daecb1a3b23d89fa9c7453327f
https://github.com/scummvm/scummvm/commit/272a2fd4be1b69daecb1a3b23d89fa9c7453327f
Author: D G Turner (digitall at scummvm.org)
Date: 2024-06-11T23:54:30+01:00
Commit Message:
FREESCAPE: Fix Missing Braces In Initializer GCC Compiler Warning
Changed paths:
engines/freescape/freescape.cpp
diff --git a/engines/freescape/freescape.cpp b/engines/freescape/freescape.cpp
index 2091b657e5b..0a685169c9b 100644
--- a/engines/freescape/freescape.cpp
+++ b/engines/freescape/freescape.cpp
@@ -260,27 +260,27 @@ void FreescapeEngine::drawTitle() {
}
static uint8 kCosineSineTable [72][2] {
- // Each "dw" contains (cos, sin) (one byte each):
- // [-64, 64]
- // 72 steps is a whole turn.
- 0x40, 0x00, 0x40, 0x06, 0x3f, 0x0b, 0x3e, 0x11
- , 0x3c, 0x16, 0x3a, 0x1b, 0x37, 0x20, 0x34, 0x25
- , 0x31, 0x29, 0x2d, 0x2d, 0x29, 0x31, 0x25, 0x34
- , 0x20, 0x37, 0x1b, 0x3a, 0x16, 0x3c, 0x11, 0x3e
- , 0x0b, 0x3f, 0x06, 0x40, 0x00, 0x40, 0xfa, 0x40
- , 0xf5, 0x3f, 0xef, 0x3e, 0xea, 0x3c, 0xe5, 0x3a
- , 0xe0, 0x37, 0xdb, 0x34, 0xd7, 0x31, 0xd3, 0x2d
- , 0xcf, 0x29, 0xcc, 0x25, 0xc9, 0x20, 0xc6, 0x1b
- , 0xc4, 0x16, 0xc2, 0x11, 0xc1, 0x0b, 0xc0, 0x06
- , 0xc0, 0x00, 0xc0, 0xfa, 0xc1, 0xf5, 0xc2, 0xef
- , 0xc4, 0xea, 0xc6, 0xe5, 0xc9, 0xe0, 0xcc, 0xdb
- , 0xcf, 0xd7, 0xd3, 0xd3, 0xd7, 0xcf, 0xdb, 0xcc
- , 0xe0, 0xc9, 0xe5, 0xc6, 0xea, 0xc4, 0xef, 0xc2
- , 0xf5, 0xc1, 0xfa, 0xc0, 0x00, 0xc0, 0x06, 0xc0
- , 0x0b, 0xc1, 0x11, 0xc2, 0x16, 0xc4, 0x1b, 0xc6
- , 0x20, 0xc9, 0x25, 0xcc, 0x29, 0xcf, 0x2d, 0xd3
- , 0x31, 0xd7, 0x34, 0xdb, 0x37, 0xe0, 0x3a, 0xe5
- , 0x3c, 0xea, 0x3e, 0xef, 0x3f, 0xf5, 0x40, 0xfa
+ // Each "dw" contains (cos, sin) (one byte each):
+ // [-64, 64]
+ // 72 steps is a whole turn.
+ { 0x40, 0x00 }, { 0x40, 0x06 }, { 0x3f, 0x0b }, { 0x3e, 0x11 },
+ { 0x3c, 0x16 }, { 0x3a, 0x1b }, { 0x37, 0x20 }, { 0x34, 0x25 },
+ { 0x31, 0x29 }, { 0x2d, 0x2d }, { 0x29, 0x31 }, { 0x25, 0x34 },
+ { 0x20, 0x37 }, { 0x1b, 0x3a }, { 0x16, 0x3c }, { 0x11, 0x3e },
+ { 0x0b, 0x3f }, { 0x06, 0x40 }, { 0x00, 0x40 }, { 0xfa, 0x40 },
+ { 0xf5, 0x3f }, { 0xef, 0x3e }, { 0xea, 0x3c }, { 0xe5, 0x3a },
+ { 0xe0, 0x37 }, { 0xdb, 0x34 }, { 0xd7, 0x31 }, { 0xd3, 0x2d },
+ { 0xcf, 0x29 }, { 0xcc, 0x25 }, { 0xc9, 0x20 }, { 0xc6, 0x1b },
+ { 0xc4, 0x16 }, { 0xc2, 0x11 }, { 0xc1, 0x0b }, { 0xc0, 0x06 },
+ { 0xc0, 0x00 }, { 0xc0, 0xfa }, { 0xc1, 0xf5 }, { 0xc2, 0xef },
+ { 0xc4, 0xea }, { 0xc6, 0xe5 }, { 0xc9, 0xe0 }, { 0xcc, 0xdb },
+ { 0xcf, 0xd7 }, { 0xd3, 0xd3 }, { 0xd7, 0xcf }, { 0xdb, 0xcc },
+ { 0xe0, 0xc9 }, { 0xe5, 0xc6 }, { 0xea, 0xc4 }, { 0xef, 0xc2 },
+ { 0xf5, 0xc1 }, { 0xfa, 0xc0 }, { 0x00, 0xc0 }, { 0x06, 0xc0 },
+ { 0x0b, 0xc1 }, { 0x11, 0xc2 }, { 0x16, 0xc4 }, { 0x1b, 0xc6 },
+ { 0x20, 0xc9 }, { 0x25, 0xcc }, { 0x29, 0xcf }, { 0x2d, 0xd3 },
+ { 0x31, 0xd7 }, { 0x34, 0xdb }, { 0x37, 0xe0 }, { 0x3a, 0xe5 },
+ { 0x3c, 0xea }, { 0x3e, 0xef }, { 0x3f, 0xf5 }, { 0x40, 0xfa }
};
// Taken from the Myst 3 codebase, it should be abstracted
More information about the Scummvm-git-logs
mailing list