mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
added access to remote access of local variables of global scripts
This commit is contained in:
parent
3147aebf75
commit
3b990795c4
18 changed files with 277 additions and 136 deletions
|
@ -204,14 +204,15 @@ namespace Compiler
|
|||
std::string name2 = Misc::StringUtils::lowerCase (name);
|
||||
std::string id = Misc::StringUtils::lowerCase (mExplicit);
|
||||
|
||||
char type = getContext().getMemberType (name2, id);
|
||||
std::pair<char, bool> type = getContext().getMemberType (name2, id);
|
||||
|
||||
if (type!=' ')
|
||||
if (type.first!=' ')
|
||||
{
|
||||
Generator::fetchMember (mCode, mLiterals, type, name2, id);
|
||||
Generator::fetchMember (mCode, mLiterals, type.first, name2, id, !type.second);
|
||||
|
||||
mNextOperand = false;
|
||||
mExplicit.clear();
|
||||
mOperands.push_back (type=='f' ? 'f' : 'l');
|
||||
mOperands.push_back (type.first=='f' ? 'f' : 'l');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue