/*
Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
extern float blurness;
extern float targetblurness;
extern Objects objects;
-extern ImageRec texture;
extern bool visibleloading;
extern bool skyboxtexture;
extern int tutoriallevel;
void Terrain::UpdateTransparencyother(int whichx, int whichy)
{
- static XYZ vertex;
static int i, j, a, b, c, d, patch_size, stepsize;
patch_size = size / subdivision;
float temptexdetail = texdetail;
+ ImageRec texture;
+
//Load Image
- upload_image(ConvertFileName(fileName));
+ load_image(ConvertFileName(fileName), texture);
//Is it valid?
if (texture.bpp > 24) {
float Terrain::getHeight(float pointx, float pointz)
{
static int tilex, tiley;
- static XYZ startpoint, endpoint, intersect, triangle[3], average;
+ static XYZ startpoint, endpoint, intersect, triangle[3];
pointx /= scale;
pointz /= scale;