Fix x coord being trashed to -1 if z < 0 when spawning

Signed-off-by: Ross Allan <rallanpcl@gmail.com>