All pastes #499374 Raw Edit

ode_fix

public text v1 · immutable
·published 2007-05-21 00:53 UTC
rendered paste body
            for (int i = 0; i < 65536; i++)
            {
                /// heightmap x,y must be swapped for Ode (should fix ODE, but for now...)
                int x = i & 0xff;
                int y = i >> 8;
                int ii = x * 256 + y;
                this._heightmap[i] = (double)heightMap[ii];

                /// this._heightmap[i] = (double)heightMap[i];