clamp shadow rect

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2997 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-13 13:43:03 +00:00
parent b1cf271061
commit ba59c1c5b0
+5
View File
@@ -452,6 +452,11 @@ static void rendershadow_flatdelta(int x, int y, float h1, float h2, float h3, f
void rendershadow(int x, int y, int xs, int ys)
{
x = max(x, 0);
y = max(y, 0);
xs = min(xs, ssize-1);
ys = min(ys, ssize-1);
resetshadowverts();
#define df(x) s->floor-(x->vdelta/4.0f)