summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:26:34 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:26:34 -0400
commite82080d42bbb81b2add8bef5c073cc353dfea307 (patch)
treece62aa2f8fdc375922228144285959a7eb471764 /src/scrcmd.c
parentb1603bba92dac95fd1621978f21ee9bf107f7b6a (diff)
parent3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (diff)
Merge remote-tracking branch 'origin/master' into modern_ld
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r--src/scrcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c
index 69acf7b7b..224da3ef4 100644
--- a/src/scrcmd.c
+++ b/src/scrcmd.c
@@ -1106,7 +1106,7 @@ bool8 ScrCmd_showobject_at(struct ScriptContext * ctx)
u8 mapGroup = ScriptReadByte(ctx);
u8 mapNum = ScriptReadByte(ctx);
- npc_by_local_id_and_map_set_field_1_bit_x20(localId, mapNum, mapGroup, 0);
+ ShowOrHideObjectByLocalIdAndMap(localId, mapNum, mapGroup, 0);
return FALSE;
}
@@ -1116,7 +1116,7 @@ bool8 ScrCmd_hideobject_at(struct ScriptContext * ctx)
u8 mapGroup = ScriptReadByte(ctx);
u8 mapNum = ScriptReadByte(ctx);
- npc_by_local_id_and_map_set_field_1_bit_x20(localId, mapNum, mapGroup, 1);
+ ShowOrHideObjectByLocalIdAndMap(localId, mapNum, mapGroup, 1);
return FALSE;
}
@@ -1127,7 +1127,7 @@ bool8 ScrCmd_setobjectpriority(struct ScriptContext * ctx)
u8 mapNum = ScriptReadByte(ctx);
u8 priority = ScriptReadByte(ctx);
- sub_805F3A8(localId, mapNum, mapGroup, priority + 83);
+ SetObjectPriorityByLocalIdAndMap(localId, mapNum, mapGroup, priority + 83);
return FALSE;
}
@@ -1137,7 +1137,7 @@ bool8 ScrCmd_resetobjectpriority(struct ScriptContext * ctx)
u8 mapGroup = ScriptReadByte(ctx);
u8 mapNum = ScriptReadByte(ctx);
- sub_805F400(localId, mapNum, mapGroup);
+ UnfixObjectPriorityByLocalIdAndMap(localId, mapNum, mapGroup);
return FALSE;
}