From 8f3041de2898a39821781075a72b5af0af4743e0 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sat, 20 Jul 2013 13:40:43 +0000 Subject: [PATCH] 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 --- source/src/worldocull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/worldocull.cpp b/source/src/worldocull.cpp index 70821559..57c30b0b 100644 --- a/source/src/worldocull.cpp +++ b/source/src/worldocull.cpp @@ -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