use explicit thread name exception thread ID parameter, when not implicit

This commit is contained in:
Ryan Fleury
2024-01-30 13:11:37 -08:00
parent d9f69cdf14
commit c700264445
3 changed files with 13 additions and 1 deletions
+8 -1
View File
@@ -6731,7 +6731,14 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
{
String8 string = event->string;
DF_Entity *thread = df_entity_from_ctrl_handle(event->machine_id, event->entity);
df_entity_equip_name(0, thread, string);
if(event->entity_id != 0)
{
thread = df_entity_from_ctrl_id(event->machine_id, event->entity_id);
}
if(!df_entity_is_nil(thread))
{
df_entity_equip_name(0, thread, string);
}
}break;
//- rjf: memory