aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman
diff options
context:
space:
mode:
authorjohndoe1232015-11-18 12:57:22 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit88ea89118473e149de077f2c620dc5424e1ed1a2 (patch)
tree46ffbd019bb4ea1c6e0b76ff4658378186afb600 /engines/illusions/duckman
parente63eaabbdb5c54df03651edc34a6048946fb2f3f (diff)
downloadscummvm-rg350-88ea89118473e149de077f2c620dc5424e1ed1a2.tar.gz
scummvm-rg350-88ea89118473e149de077f2c620dc5424e1ed1a2.tar.bz2
scummvm-rg350-88ea89118473e149de077f2c620dc5424e1ed1a2.zip
ILLUSIONS: Use ARRAYSIZE instead of hardcoded values in screen effect constants
Diffstat (limited to 'engines/illusions/duckman')
-rw-r--r--engines/illusions/duckman/duckman_specialcode.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/illusions/duckman/duckman_specialcode.cpp b/engines/illusions/duckman/duckman_specialcode.cpp
index 8d33aa77f1..af52183097 100644
--- a/engines/illusions/duckman/duckman_specialcode.cpp
+++ b/engines/illusions/duckman/duckman_specialcode.cpp
@@ -86,7 +86,7 @@ static const ScreenShakerPoint kShakerPoints0[] = {
};
static const ScreenShakeEffect kShakerEffect0 = {
- 6, 5, kShakerPoints0
+ ARRAYSIZE(kShakerPoints0), 5, kShakerPoints0
};
static const ScreenShakerPoint kShakerPoints1[] = {
@@ -95,7 +95,7 @@ static const ScreenShakerPoint kShakerPoints1[] = {
};
static const ScreenShakeEffect kShakerEffect1 = {
- 9, 2, kShakerPoints1
+ ARRAYSIZE(kShakerPoints1), 2, kShakerPoints1
};
static const ScreenShakerPoint kShakerPoints2[] = {
@@ -104,7 +104,7 @@ static const ScreenShakerPoint kShakerPoints2[] = {
};
static const ScreenShakeEffect kShakerEffect2 = {
- 9, 2, kShakerPoints2
+ ARRAYSIZE(kShakerPoints2), 2, kShakerPoints2
};
static const ScreenShakerPoint kShakerPoints3[] = {
@@ -112,7 +112,7 @@ static const ScreenShakerPoint kShakerPoints3[] = {
};
static const ScreenShakeEffect kShakerEffect3 = {
- 5, 2, kShakerPoints3
+ ARRAYSIZE(kShakerPoints3), 2, kShakerPoints3
};
static const ScreenShakerPoint kShakerPoints4[] = {
@@ -120,7 +120,7 @@ static const ScreenShakerPoint kShakerPoints4[] = {
};
static const ScreenShakeEffect kShakerEffect4 = {
- 8, 5, kShakerPoints4
+ ARRAYSIZE(kShakerPoints4), 5, kShakerPoints4
};
static const ScreenShakerPoint kShakerPoints5[] = {
@@ -131,7 +131,7 @@ static const ScreenShakerPoint kShakerPoints5[] = {
};
static const ScreenShakeEffect kShakerEffect5 = {
- 31, 2, kShakerPoints5
+ ARRAYSIZE(kShakerPoints5), 2, kShakerPoints5
};
static const ScreenShakeEffect *kShakerEffects[] = {