uninitialized variables in isoccluded fix, assumed to be treated as 0 (thanks SKB)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7507 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-07-20 13:40:43 +00:00
parent dcb847d8ec
commit 8f3041de28
+1 -1
View File
@@ -91,7 +91,7 @@ int isoccluded(float vx, float vy, float cx, float cy, float csize) // v = v
// find highest and lowest angle in the occlusion map that this cube spans, based on its most left and right
// points on the border from the viewer pov... I see no easier way to do this than this silly code below
float xdist = 0, ydist = 0, h, l;
float xdist = 0, ydist = 0, h = 0, l = 0;
if(cx<=vx) // ABDFG
{
if(cx+csize<vx) // ADF