aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2.cpp
diff options
context:
space:
mode:
authoruruk2014-05-23 15:23:19 +0200
committeruruk2014-05-23 15:23:19 +0200
commit947f4b860759940dfc6420ca84870b210b1253c5 (patch)
tree49fd1a5faf2b42971134e30e24cb0f1fbb228cdb /engines/cge2/cge2.cpp
parente2ca4382d86ac869f8628441924cc7f19a0b7b4e (diff)
downloadscummvm-rg350-947f4b860759940dfc6420ca84870b210b1253c5.tar.gz
scummvm-rg350-947f4b860759940dfc6420ca84870b210b1253c5.tar.bz2
scummvm-rg350-947f4b860759940dfc6420ca84870b210b1253c5.zip
CGE2: Partially implement CommandHandler::runCommand().
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r--engines/cge2/cge2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp
index 2f9cf1a7a3..e15e096d9f 100644
--- a/engines/cge2/cge2.cpp
+++ b/engines/cge2/cge2.cpp
@@ -60,6 +60,8 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_infoLine = nullptr;
_mouse = nullptr;
_talk = nullptr;
+ for (int i = 0; i < kMaxPoint; i++)
+ _point[i] = nullptr;
_quitFlag = false;
_bitmapPalette = nullptr;
@@ -72,7 +74,10 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_dark = false;
_lastFrame = 0;
_lastTick = 0;
+ _waitSeq = 0;
_waitRef = 0;
+ _commandStat = { nullptr, { 0 , 0 } };
+ _taken = false;
}
void CGE2Engine::init() {
@@ -93,6 +98,8 @@ void CGE2Engine::init() {
_infoLine = new InfoLine(this, kInfoW);
_mouse = new Mouse(this);
_talk = new Talk(this);
+ for (int i = 0; i < kMaxPoint; i++)
+ _point[i] = new V3D();
}
void CGE2Engine::deinit() {
@@ -118,6 +125,9 @@ void CGE2Engine::deinit() {
delete _infoLine;
delete _mouse;
delete _talk;
+ for (int i = 0; i < kMaxPoint; i++) {
+ delete _point[i];
+ }
}
bool CGE2Engine::hasFeature(EngineFeature f) const {