Compare commits

...

1 Commits

Author SHA1 Message Date
coah
9a472e27f8 cleanup(eZiText): rename work unk_0x12E to uwdPrioritySort
When set, UWD insert stops at first lower-priority candidate.
2026-10-02 14:25:38 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ struct __zi8_work_data_s {
ziU8* unk_0x128;
ziU8 unk_0x12C;
ziU8 unk_0x12D;
ziU8 unk_0x12E;
ziU8 uwdPrioritySort; // 0x12E
ziU8 unk_0x12F;
ziPtr unk_0x130[2];
ziU8 unk_0x138;

View File

@@ -41,7 +41,7 @@ ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
current = ZI_WORK->uwdList;
while (current != 0) {
candidate = (ziUserWord*)current->word;
if (ZI_WORK->unk_0x12E == 1 && candidate->priority < word->priority) break;
if (ZI_WORK->uwdPrioritySort == 1 && candidate->priority < word->priority) break;
if (candidate->length == length) {
position = 0;
while (position < length) {