CGE2: Implement snGive() and snRmNear().

This commit is contained in:
uruk 2014-06-22 13:05:24 +02:00
parent f1b14c6d31
commit fc5c92b5d0

View File

@ -505,7 +505,16 @@ void CGE2Engine::snKeep(Sprite *spr, int stp) {
}
void CGE2Engine::snGive(Sprite *spr, int val) {
warning("STUB: CGE2Engine::snGive()");
if (spr) {
int p = findActivePocket(spr->_ref);
if (p >= 0) {
releasePocket(spr);
spr->setScene(_now);
if (val >= 0)
spr->step(val);
}
}
selectPocket(-1);
}
void CGE2Engine::snGoto(Sprite *spr, int val) {
@ -562,7 +571,8 @@ void CGE2Engine::snRFTNext(Sprite *spr, int val) {
}
void CGE2Engine::snRmNear(Sprite *spr) {
warning("STUB: CGE2Engine::snRmNear()");
if (spr)
spr->_actionCtrl[kNear]._cnt = 0;
}
void CGE2Engine::snRmMTake(Sprite *spr) {