aboutsummaryrefslogtreecommitdiff
path: root/engines/dm
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm')
-rw-r--r--engines/dm/detection.cpp5
-rw-r--r--engines/dm/group.cpp3
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/dm/detection.cpp b/engines/dm/detection.cpp
index e8ec79a176..a8f44acdba 100644
--- a/engines/dm/detection.cpp
+++ b/engines/dm/detection.cpp
@@ -71,7 +71,8 @@ static const DMADGameDescription gameDescriptions[] = {
{ kDMSavePlatformAcceptAny }
},
{
- {"dm", "Amiga Demo v??? English",
+ // Added by Strangerke
+ {"dm", "Amiga Demo v2.0 English",
{
{"graphics.dat", 0, "3932c8359bb36c24291b09e915114d38", 192421},
{"DemoDun.dat", 0, "78848e1a2d3d5a11e5954deb8c7b772b", 1209},
@@ -90,12 +91,10 @@ static const DMADGameDescription gameDescriptions[] = {
}
};
-
static const ADExtraGuiOptionsMap optionsList[] = {
AD_EXTRA_GUI_OPTIONS_TERMINATOR
};
-
class DMMetaEngine : public AdvancedMetaEngine {
public:
DMMetaEngine() : AdvancedMetaEngine(DM::gameDescriptions, sizeof(DMADGameDescription), DMGames, optionsList) {
diff --git a/engines/dm/group.cpp b/engines/dm/group.cpp
index b1d9766912..cf748ffa41 100644
--- a/engines/dm/group.cpp
+++ b/engines/dm/group.cpp
@@ -1832,6 +1832,9 @@ Thing GroupMan::groupGetGenerated(CreatureType creatureType, int16 healthMultipl
}
bool GroupMan::isSquareACorridorTeleporterPitOrDoor(int16 mapX, int16 mapY) {
+ if (_vm->isDemo())
+ return false;
+
int16 squareType = Square(_vm->_dungeonMan->getSquare(mapX, mapY)).getType();
return ((squareType == kDMElementTypeCorridor) || (squareType == kDMElementTypeTeleporter)