aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/dataLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/dataLoader.cpp')
-rw-r--r--engines/cruise/dataLoader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index 364b1dfee8..db9e57d77d 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -148,9 +148,9 @@ int updateResFileEntry(int height, int width, int entryNumber, int resType) {
int maskSize = height * width; // for sprites: width * height
- if (resType == 4) {
+ if (resType == OBJ_TYPE_SPRITE) {
div = maskSize / 4;
- } else if (resType == 5) {
+ } else if (resType == OBJ_TYPE_MESSAGE) {
width = (width * 8) / 5;
}
@@ -193,9 +193,9 @@ int createResFileEntry(int width, int height, int resType) {
size = width * height; // for sprites: width * height
- if (resType == 4) {
+ if (resType == OBJ_TYPE_SPRITE) {
div = size / 4;
- } else if (resType == 5) {
+ } else if (resType == OBJ_TYPE_MESSAGE) {
width = (width * 8) / 5;
}