From 23c7dc8ebd6f6443f476de010129bb01aff210b4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 18 Aug 2019 20:31:58 +0200 Subject: HDB: Implement differences in rendering pipeline for the PPC demo --- engines/hdb/hdb.cpp | 4 +++- engines/hdb/map.cpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 43b419abdc..488158152e 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -1012,7 +1012,9 @@ Common::Error HDBGame::run() { if (e && e->level < 2) _ai->drawWayPoints(); - _map->drawEnts(); + if (!(g_hdb->isDemo() && g_hdb->isPPC())) + _map->drawEnts(); + _map->drawGratings(); if (e && e->level == 2) diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index 5defd8680e..e4acff3aba 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -910,6 +910,9 @@ void Map::draw() { screenY += kTileWidth; } + if (g_hdb->isDemo() && g_hdb->isPPC()) + drawEnts(); + // Animate FAST Map Tiles if (!(_animCycle % kAnimFastFrames)) { for (Common::Array::iterator it = _listBGAnimFast.begin(); it != _listBGAnimFast.end(); ++it) { -- cgit v1.2.3