




//# address-hook(0x02dd3e) end(0x02dd92)
function void LevelResults.UpdateCharacterNameDisplay()
{
	if (global.characters == CHARS_TAILS_ALONE)
	{
		++objA0.animation.sprite
		if (global.region_code & 0x80)
		{
			// Small changes for "Miles" instead of "Tails"
			++objA0.animation.sprite
			D0 = 8
			objA0.position.x.u16 += D0.u16
			u16[A0 + 0x46] += D0.u16
			objA0.box_size.x -= D0.u8
		}
	}
	else if (global.characters == CHARS_KNUCKLES_ALONE)
	{
                u16[0xfffffc0a] = 0x0080
		objA0.animation.sprite += 3
		D0 = 0x30
		objA0.position.x.u16 -= D0.u16
		u16[A0 + 0x46] -= D0.u16
		objA0.box_size.x += D0.u8
	}

	A1 = 0xffff0000 + u16[A0 + 0x48]
	D0 = (u16[A1 + 0x2c] != 0) ? 0x28 : 0
	objA0.sprite_attributes = D0.u16
	objA0.update_address = 0x02dd98
	LevelResults.UpdateStaticTextDisplay()
}


