mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
CGE2: Implement snTrans() and snPort().
This commit is contained in:
parent
7c65aa7aec
commit
15a2256972
@ -232,8 +232,8 @@ public:
|
||||
void snGoto(Sprite *spr, int val);
|
||||
void snMove(Sprite *spr, V3D pos);
|
||||
void snSlave(Sprite *spr, int val);
|
||||
void snTrans(Sprite *spr, int val);
|
||||
void snPort(Sprite *spr, int val);
|
||||
void snTrans(Sprite *spr, int trans);
|
||||
void snPort(Sprite *spr, int port);
|
||||
void snMouse(bool on);
|
||||
void snNNext(Sprite *spr, Action act, int val);
|
||||
void snRNNext(Sprite *spr, int val);
|
||||
|
@ -579,12 +579,16 @@ void CGE2Engine::snSlave(Sprite *spr, int val) {
|
||||
warning("STUB: CGE2Engine::snSlave()");
|
||||
}
|
||||
|
||||
void CGE2Engine::snTrans(Sprite *spr, int val) {
|
||||
warning("STUB: CGE2Engine::snTrans()");
|
||||
void CGE2Engine::snTrans(Sprite *spr, int trans) {
|
||||
if (spr) {
|
||||
spr->_flags._tran = (trans < 0) ? !spr->_flags._tran : (trans != 0);
|
||||
}
|
||||
}
|
||||
|
||||
void CGE2Engine::snPort(Sprite *spr, int val) {
|
||||
warning("STUB: CGE2Engine::snPort()");
|
||||
void CGE2Engine::snPort(Sprite *spr, int port) {
|
||||
if (spr) {
|
||||
spr->_flags._port = (port < 0) ? !spr->_flags._port : (port != 0);
|
||||
}
|
||||
}
|
||||
|
||||
void CGE2Engine::snMouse(bool on) {
|
||||
|
Loading…
Reference in New Issue
Block a user