LAB: Error out on unused opcodes
This also fixes a warning
This commit is contained in:
parent
9d7a2f4e7f
commit
35f53bb522
2 changed files with 10 additions and 6 deletions
|
@ -267,6 +267,12 @@ void LabEngine::doActions(Action *actionList, CloseDataPtr *closePtrList) {
|
|||
_graphics->loadPict(actionList->_messages[0]);
|
||||
|
||||
break;
|
||||
|
||||
case kActionLoadBitmap:
|
||||
error("Unused opcode kActionLoadBitmap has been called");
|
||||
|
||||
case kActionShowBitmap:
|
||||
error("Unused opcode kActionShowBitmap has been called");
|
||||
|
||||
case kActionTransition:
|
||||
_graphics->doTransition((TransitionType)actionList->_param1, closePtrList, actionList->_messages[0].c_str());
|
||||
|
@ -426,9 +432,7 @@ void LabEngine::doActions(Action *actionList, CloseDataPtr *closePtrList) {
|
|||
break;
|
||||
|
||||
case kActionLostGame:
|
||||
// This seems to be unused?
|
||||
error("Unused opcode LOSTGAME has been called");
|
||||
break;
|
||||
error("Unused opcode kActionLostGame has been called");
|
||||
|
||||
case kActionResetBuffer:
|
||||
_graphics->freePict();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue