Files
firestorm/Gameleap/code/mw4/Tools/TCTb/Terra/Map.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

31 lines
411 B
C++

#include <math.h>
#include "Geom.hpp"
#include "Map.hpp"
Map *DEM;
int point_limit = -1;
real error_threshold = 0.0;
real rint (real in)
{
return floor(in+0.5);
}
void Map::findLimits()
{
min = HUGE;
max = -HUGE;
for(int i=0;i<width;i++)
for(int j=0;j<height;j++)
{
real val = eval(i,j);
if( val<min ) min = val;
if( val>max ) max = val;
}
}