TRECISION: Add ATFNONE to remove a "magic" value

This commit is contained in:
Strangerke 2021-05-25 21:56:57 +01:00 committed by SupSuper
parent 2ec411c0e5
commit f372bf457d
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ enum AnimationTypes {
kAnimTypeIcon = 2
};
#define ATFNONE 0
#define ATFTEXT 1
#define ATFSND 2
#define ATFTEXTACT 3

View File

@ -530,7 +530,7 @@ void TrecisionEngine::doMouseTake(uint16 curObj) {
if (frame->_type == ATFCLR && frame->_index == curObj)
break;
if (frame->_type == 0) {
if (frame->_type == ATFNONE) {
frame->_child = 0;
frame->_numFrame = 1;
frame->_type = ATFCLR;