DIRECTOR: Fix copy/paste error and added comments

This commit is contained in:
Eugene Sandulenko 2021-07-08 23:52:37 +02:00
parent d9aece25d8
commit eac8763545
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -53,7 +53,7 @@ void LabelDrvXObj::initialize(int type) {
LabelDrvXObject *xobj = new LabelDrvXObject(kXObj);
g_lingo->_globalvars[xlibName] = xobj;
} else {
warning("PalXObject already initialized");
warning("LabelDrvXObj already initialized");
}
}
}
@ -80,7 +80,7 @@ void LabelDrvXObj::m_setRange(int nargs) {
Common::String from = d1.asString();
Common::String to = d2.asString();
me->_range = from;
me->_range = from; // Store it so we could return value in the requested range
}
void LabelDrvXObj::m_getDrive(int nargs) {
@ -90,7 +90,7 @@ void LabelDrvXObj::m_getDrive(int nargs) {
Common::String label = d1.asString();
g_lingo->push(Datum(me->_range));
g_lingo->push(Datum(me->_range)); // Always returning first letter
}
} // End of namespace Director