0ad/source/dcdt/se/sr_spline.cpp
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

25 lines
535 B
C++

#include "precompiled.h"
#include "0ad_warning_disable.h"
//# include <math.h>
# include "sr_spline.h"
//============================== SrSpline ===============================
SrSpline::SrSpline ( const SrSpline& c )
{
}
void SrSpline::init ( int d, int k )
{
_pieces = k-1;
_dim = d;
if ( _pieces<0 ) _pieces=0;
if ( _dim<0 ) _dim=0;
_spline.size ( _pieces*(_dim*3) + _dim );
_spline.setall ( 0.0f );
}
//============================== end of file ===============================