mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
VarAction2: Do not scan into procedures for ACOM_CB36_PROP analysis
This commit is contained in:
parent
672382f960
commit
dc57a51e8a
@ -270,7 +270,7 @@ void DeterministicSpriteGroup::AnalyseCallbacks(AnalyseCallbackOperation &op) co
|
||||
if ((op.mode == ACOM_CB_VAR || op.mode == ACOM_CB_REFIT_CAPACITY) && adjust.variable == 0x47) {
|
||||
op.result_flags |= ACORF_CB_REFIT_CAP_SEEN_VAR_47;
|
||||
}
|
||||
if (adjust.variable == 0x7E && adjust.subroutine != nullptr) {
|
||||
if (adjust.variable == 0x7E && adjust.subroutine != nullptr && op.mode != ACOM_CB36_PROP) {
|
||||
adjust.subroutine->AnalyseCallbacks(op);
|
||||
}
|
||||
if (op.mode == ACOM_INDUSTRY_TILE && this->var_scope == VSG_SCOPE_SELF && (adjust.variable == 0x44 || (adjust.variable == 0x61 && adjust.parameter == 0))) {
|
||||
|
Loading…
Reference in New Issue
Block a user