summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 7801a2140..80ef97c72 100644
--- a/misc.c
+++ b/misc.c
@@ -150,9 +150,14 @@ void InitializeGame(int mode, uint size_x, uint size_y)
ResetObjectToPlace();
}
+bool IsCustomName(StringID id)
+{
+ return GB(id, 11, 5) == 15;
+}
+
void DeleteName(StringID id)
{
- if ((id & 0xF800) == 0x7800) {
+ if (IsCustomName(id)) {
memset(_name_array[id & 0x1FF], 0, sizeof(_name_array[id & 0x1FF]));
}
}