In rP21480 a typo was introduced where caster became caster hence breaking indexes. This patch fixes that.
It also fixes a typo where u8 was thought to be 16384
It also fixes a peculiar bug that didn't change the behaviour
Before this patch
x0 static_cast<u16>(g_HalfMaxCoord + g_HalfMaxCoord * svec.Y / svec.W));
-> x0 = 6493
Original and after this patch
x0 static_cast<u16>(g_HalfMaxCoord + static_cast<u16>(g_HalfMaxCoord * svec.Y / svec.W)));
-> x0 = 6494