New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIRECTOR: LINGO: Implement the beepOn property and remove their respective STUBs #4010
Conversation
engines/director/lingo/lingo-the.cpp
Outdated
@@ -377,7 +377,8 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) { | |||
d = g_lingo->_actorList; | |||
break; | |||
case kTheBeepOn: | |||
getTheEntitySTUB(kTheBeepOn); | |||
d.type = INT; | |||
d.u.i = (int) g_director->getCurrentMovie()->_isBeepOn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not add space after type cast.
engines/director/lingo/lingo-the.cpp
Outdated
@@ -936,7 +937,7 @@ void Lingo::setTheEntity(int entity, Datum &id, int field, Datum &d) { | |||
g_lingo->_actorList = d; | |||
break; | |||
case kTheBeepOn: | |||
setTheEntitySTUB(kTheBeepOn); | |||
g_director->getCurrentMovie()->_isBeepOn = (bool) d.u.i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing regarding extra space after the type cast.
@@ -87,6 +87,8 @@ Movie::Movie(Window *window) { | |||
_timeOutKeyDown = true; | |||
_timeOutMouse = true; | |||
_timeOutPlay = false; | |||
|
|||
_isBeepOn = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that beep is on by default, not off. Could you please check with the original?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the D4 Dictionary, beepOn is FALSE by default. I will check with basiliskII and update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the movie. beepOn is off by default in the original too
Thank you. |
Implements the beepOn property by creating a bool
_isBeepOn
for the movie and emitting a beep at every mouse down event which meets these conditions:Tested using
beepOn
workshop movie and shows identical behaviour as in BasiliskII