X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=af0eb18561371085d221b4b53572ad92529dfe73;hb=7de3125ca72d91329f0d4d0980635cf7355c3082;hp=93766d36bcb9953d9f345514a387b67f02c6729a;hpb=1a6d35fbcc13894dda92a395eaea992efbf18e3f;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 93766d3..af0eb18 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -931,10 +931,9 @@ int Game::DrawGLScene(StereoSide side) //Hot spots if (numhotspots && (bonustime >= 1 || bonus <= 0 || bonustime < 0) && !tutoriallevel) { - int closest = -1; float closestdist = -1; float distance = 0; - closest = currenthotspot; + int closest = currenthotspot; for (int i = 0; i < numhotspots; i++) { distance = distsq(&Person::players[0]->coords, &hotspot[i]); if (closestdist == -1 || distance < closestdist) { @@ -1515,8 +1514,6 @@ int Game::DrawGLScene(StereoSide side) } } } - radius = fast_sqrt(maxdistance); - radius = 110; glScalef(.25 / radius * 256 * terrain.scale * .4, .25 / radius * 256 * terrain.scale * .4, 1);