From 3ba8eb2b0885147a666fe5a183e1699d8c508495 Mon Sep 17 00:00:00 2001 From: Daveo Date: Mon, 12 Mar 2001 21:04:18 +0000 Subject: [PATCH] --- source/level/layertile3d.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/level/layertile3d.cpp b/source/level/layertile3d.cpp index 1991673ef..43eeb2577 100644 --- a/source/level/layertile3d.cpp +++ b/source/level/layertile3d.cpp @@ -158,6 +158,8 @@ s32 ClipZ; *(u16*)&TPrimPtr->u2=T2; // Set UV2 int ZP=P0->vz>>5; + if (ZP<-4) ZP=-4; + if (ZP>8) ZP=8; sOT *ThisOT=OtPtr+(LayerOT+ZP); TList++;