diff options
author | Matthew Hoops | 2012-08-28 16:36:50 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-08-28 16:36:50 -0400 |
commit | 81e7c9a0c1599786a1aeb73d243609a2d280335f (patch) | |
tree | 604194638c5811eb1481c2fc70a3e12ee3253e65 /engines/pegasus/neighborhood/prehistoric/prehistoric.cpp | |
parent | c15369c26f49204dc3a49d8215c1c21660a781f9 (diff) | |
download | scummvm-rg350-81e7c9a0c1599786a1aeb73d243609a2d280335f.tar.gz scummvm-rg350-81e7c9a0c1599786a1aeb73d243609a2d280335f.tar.bz2 scummvm-rg350-81e7c9a0c1599786a1aeb73d243609a2d280335f.zip |
PEGASUS: Remove g_allHotspots global construction
Diffstat (limited to 'engines/pegasus/neighborhood/prehistoric/prehistoric.cpp')
-rw-r--r-- | engines/pegasus/neighborhood/prehistoric/prehistoric.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp index b67d31ad95..dcc00ab651 100644 --- a/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp +++ b/engines/pegasus/neighborhood/prehistoric/prehistoric.cpp @@ -493,10 +493,10 @@ void Prehistoric::activateHotspots() { switch (GameState.getCurrentRoomAndView()) { case MakeRoomView(kPrehistoric18, kEast): if (!_privateFlags.getFlag(kPrehistoricPrivateExtendedBridgeFlag)) - g_allHotspots.activateOneHotspot(kPre18EastSpotID); + _vm->getAllHotspots().activateOneHotspot(kPre18EastSpotID); break; case MakeRoomView(kPrehistoric22North, kNorth): - g_allHotspots.activateOneHotspot(kPre22NorthBreakerSpotID); + _vm->getAllHotspots().activateOneHotspot(kPre22NorthBreakerSpotID); break; } } @@ -639,7 +639,7 @@ void Prehistoric::doSolve() { Hotspot *Prehistoric::getItemScreenSpot(Item *item, DisplayElement *element) { if (item->getObjectID() == kHistoricalLog) - return g_allHotspots.findHotspotByID(kPrehistoricHistoricalLogSpotID); + return _vm->getAllHotspots().findHotspotByID(kPrehistoricHistoricalLogSpotID); return Neighborhood::getItemScreenSpot(item, element); } |