CGE2: Implement a couple of stubs

This commit is contained in:
Strangerke 2014-06-24 22:14:19 +02:00
parent 840eef8eb1
commit 3dd6c9f7aa
2 changed files with 13 additions and 6 deletions

View File

@ -807,7 +807,10 @@ void CGE2Engine::releasePocket(Sprite *spr) {
}
void CGE2Engine::checkSaySwitch() {
warning("STUB: CGE2Engine::checkSaySwitch()");
// if (SNDDrvInfo.DDEV == DEV_QUIET)
// _sayVox = !(_sayCap = true);
_commandHandlerTurbo->addCommand(kCmdSeq, 129, _sayVox, nullptr);
_commandHandlerTurbo->addCommand(kCmdSeq, 128, _sayCap, nullptr);
}
void CGE2Engine::loadTab() {

View File

@ -592,15 +592,18 @@ void CGE2Engine::snNNext(Sprite *spr, Action act, int val) {
}
void CGE2Engine::snRNNext(Sprite *spr, int val) {
warning("STUB: CGE2Engine::snRNNext()");
if (spr)
spr->_actionCtrl[kNear]._ptr += val;
}
void CGE2Engine::snRMTNext(Sprite *spr, int val) {
warning("STUB: CGE2Engine::snRMTNext()");
if (spr)
spr->_actionCtrl[kMTake]._ptr += val;
}
void CGE2Engine::snRFTNext(Sprite *spr, int val) {
warning("STUB: CGE2Engine::snRFTNext()");
void CGE2Engine::snRFTNext(Sprite * spr, int val) {
if (spr)
spr->_actionCtrl[kFTake]._ptr += val;
}
void CGE2Engine::snRmNear(Sprite *spr) {
@ -614,7 +617,8 @@ void CGE2Engine::snRmMTake(Sprite *spr) {
}
void CGE2Engine::snRmFTake(Sprite *spr) {
warning("STUB: CGE2Engine::snRmFTake()");
if (spr)
spr->_actionCtrl[kFTake]._cnt = 0;
}
void CGE2Engine::snFlag(int ref, int val) {