aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/vga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/vga.cpp')
-rw-r--r--engines/agos/vga.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp
index c998300f5e..3d85406afd 100644
--- a/engines/agos/vga.cpp
+++ b/engines/agos/vga.cpp
@@ -924,8 +924,8 @@ void AGOSEngine::vc22_setPaletteOld() {
b = vcReadNextWord();
- // PC version of Personal Nightmare uses standard EGA palette
- if (getGameType() == GType_PN && getPlatform() == Common::kPlatformPC)
+ // PC EGA version of Personal Nightmare uses standard EGA palette
+ if (getGameType() == GType_PN && (getFeatures() & GF_EGA))
return;
num = 16;
@@ -1298,8 +1298,8 @@ void AGOSEngine::vc37_pokePalette() {
uint16 offs = vcReadNextWord();
uint16 color = vcReadNextWord();
- // PC version of Personal Nightmare uses standard EGA palette
- if (getGameType() == GType_PN && getPlatform() == Common::kPlatformPC)
+ // PC EGA version of Personal Nightmare uses standard EGA palette
+ if (getGameType() == GType_PN && (getFeatures() & GF_EGA))
return;
byte *palptr = _displayPalette + offs * 4;