ModifyTerrain problem

Blitz3D Forums/Blitz3D Programming/ModifyTerrain problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've been noticing really weird effects. . .

Doing the operation:

ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)+HeightUnit*2, True


works okay, as does:

ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)-HeightUnit, True



Therefore to get the effect of:

ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)+HeightUnit, True


I could do:
ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)+HeightUnit*2, True
ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)-HeightUnit, True


However this does not work!!!

This has to be a floating number precision problem in combination with a blitz terrain bug. . . Either that or it's some kind of weird quantum entanglement. . . :O)