summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:25:52 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:25:52 -0400
commit23c07589f5c515cbf16db08881142b6ae76dc5ee (patch)
treee014266f2a4007fc05cecd79c7d2558d5b40978c /src/scrcmd.c
parentaa202b06245aa4c65f10379ecf9dc8c440a049ed (diff)
parent3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (diff)
Merge remote-tracking branch 'origin/master' into sync_bery_crush
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;
}