This occurs if all texture IDs on a particular line are multiples of 256 (like STARGR2 = 256) since the cast to boolean (byte) destroys significant bits.