Game Development Community

T3D 1.2 sanity check on terrain size

by Kenneth Eves · in Torque 3D Professional · 09/24/2012 (8:08 pm) · 0 replies

In "bool TerrainBlock::_setBaseTexSize( void *obj, const char *index, const char *data )"

the line:

S32 texSize = mClamp( dAtoi( data ), 0, 2048 );

... clamps minimum terrain heightmap in pixels at zero.

For sanity, 1 would probably be safer. I didn't try 0 to see if it crashes.