CGE2: Implement snTrans() and snPort().

This commit is contained in:
uruk 2014-07-24 22:19:11 +02:00
parent 7c65aa7aec
commit 15a2256972
2 changed files with 10 additions and 6 deletions

View File

@ -232,8 +232,8 @@ public:
void snGoto(Sprite *spr, int val); void snGoto(Sprite *spr, int val);
void snMove(Sprite *spr, V3D pos); void snMove(Sprite *spr, V3D pos);
void snSlave(Sprite *spr, int val); void snSlave(Sprite *spr, int val);
void snTrans(Sprite *spr, int val); void snTrans(Sprite *spr, int trans);
void snPort(Sprite *spr, int val); void snPort(Sprite *spr, int port);
void snMouse(bool on); void snMouse(bool on);
void snNNext(Sprite *spr, Action act, int val); void snNNext(Sprite *spr, Action act, int val);
void snRNNext(Sprite *spr, int val); void snRNNext(Sprite *spr, int val);

View File

@ -579,12 +579,16 @@ void CGE2Engine::snSlave(Sprite *spr, int val) {
warning("STUB: CGE2Engine::snSlave()"); warning("STUB: CGE2Engine::snSlave()");
} }
void CGE2Engine::snTrans(Sprite *spr, int val) { void CGE2Engine::snTrans(Sprite *spr, int trans) {
warning("STUB: CGE2Engine::snTrans()"); if (spr) {
spr->_flags._tran = (trans < 0) ? !spr->_flags._tran : (trans != 0);
}
} }
void CGE2Engine::snPort(Sprite *spr, int val) { void CGE2Engine::snPort(Sprite *spr, int port) {
warning("STUB: CGE2Engine::snPort()"); if (spr) {
spr->_flags._port = (port < 0) ? !spr->_flags._port : (port != 0);
}
} }
void CGE2Engine::snMouse(bool on) { void CGE2Engine::snMouse(bool on) {