Fixing typos

This commit is contained in:
Pavel Shevaev 2023-03-22 15:54:53 +03:00
parent 06bd8833ec
commit e6aa0a0d53
2 changed files with 8 additions and 8 deletions

View File

@ -476,9 +476,9 @@ function get_diff_related_units(\mtgMetaStruct $struct)
if($field->hasToken('nodiff'))
continue;
if($field->getType() instanceof mtgMetaStruct)
if($field->getType() instanceof \mtgMetaStruct)
$result[] = $field->getType();
else if($field->getType() instanceof mtgArrType)
else if($field->getType() instanceof \mtgArrType)
$result[] = $field->getType()->getValue();
}
return $result;

View File

@ -489,15 +489,15 @@ public class {{o.name}} : IRpc
{
bool is_equal = true;
{%- if has_token(o, 'bitfields') ~%}
{%- if has_token(u, 'bitfields') ~%}
a.ResetFieldMask();
{%- endif -%}
{%- for f in o.fields ~%}
{{_self.field_compare(o, f, loop.index0)}}
{%- for f in u.fields ~%}
{{_self.field_compare(u, f, loop.index0)}}
{%- endfor -%}
{%- if has_token(o, 'bitfields') ~%}
{%- if has_token(u, 'bitfields') ~%}
if(!is_equal)
a.SetPrimaryFieldsChanged();
{%- endif -%}
@ -508,8 +508,8 @@ public class {{o.name}} : IRpc
{% endmacro %}
{% macro compare_func_name(o) %}
{{has_token(u, 'bitfields')?'CompareAndMarkFields':'IsEqual'}}
{% endmacro %}
{{has_token(o, 'bitfields')?'CompareAndMarkFields':'IsEqual'}}
{%- endmacro %}
{%- macro field_compare(o, f, field_idx) -%}