Commit 6e0b70f3 authored by Gerhard Stein's avatar Gerhard Stein

Enhancing Keen 5 Support. So far it only load the world map with wrong sprites.

parent 06e59c21
......@@ -12,7 +12,8 @@
#include "sdl/input/CInput.h"
#include "graphics/effects/CScrollEffect.h"
#include "CStatusScreenGalaxyEp4.h"
//#include "CStatusScreenGalaxyEp5.h"
#include "CStatusScreenGalaxyEp5.h"
//#include "CStatusScreenGalaxyEp6.h"
......@@ -28,8 +29,8 @@ m_LevelName(levelname)
if(Episode == 4)
mp_StatusScreen = new CStatusScreenGalaxyEp4(Item, m_LevelName);
// else if(Episode == 5)
// mp_StatusScreen = new CStatusScreenGalaxyEp5(Item, m_LevelName);
else if(Episode == 5)
mp_StatusScreen = new CStatusScreenGalaxyEp5(Item, m_LevelName);
// else if(Episode == 6)
// mp_StatusScreen = new CStatusScreenGalaxyEp6(Item, m_LevelName);
}
......
......@@ -31,6 +31,8 @@ void CLevelPlay::loadMap(const int level)
if(g_pBehaviorEngine->getEpisode() == 4)
MapLoader = new CMapLoaderGalaxyEp4(mExeFile, mObjectPtr, mInventory, mCheatmode);
else
MapLoader = new CMapLoaderGalaxy(mExeFile, mObjectPtr, mInventory, mCheatmode);
MapLoader->loadMap( mMap, level );
......
......@@ -25,7 +25,11 @@ void CWorldMap::init()
const std::string loading_text = g_pBehaviorEngine->getString("WORLDMAP_LOAD_TEXT");
CEventContainer& EventContainer = g_pBehaviorEngine->m_EventList;
EventContainer.add( new EventSendBitmapDialogMsg(106, loading_text, LEFT) );
if(g_pBehaviorEngine->getEpisode() == 4 )
EventContainer.add( new EventSendBitmapDialogMsg(106, loading_text, LEFT) );
else
EventContainer.add( new EventSendBitmapDialogMsg(1, loading_text, LEFT) );
mMap.drawAll();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment