bug in code with 16bit z-buffer

Hi Dean,

You are correct, thank you for this! I will correct it.

Jon