diff options
| author | Eugene Sandulenko | 2014-04-13 11:32:20 +0300 | 
|---|---|---|
| committer | Eugene Sandulenko | 2014-04-13 11:33:05 +0300 | 
| commit | 42f4bb6b1ed04499eba0a15275521bdafcdb2cd5 (patch) | |
| tree | 77517870531da2679432e6904928d61aed72e1a3 /engines/fullpipe/statics.cpp | |
| parent | b2c6483d1a22bcffd0f561f32a868371483c286b (diff) | |
| download | scummvm-rg350-42f4bb6b1ed04499eba0a15275521bdafcdb2cd5.tar.gz scummvm-rg350-42f4bb6b1ed04499eba0a15275521bdafcdb2cd5.tar.bz2 scummvm-rg350-42f4bb6b1ed04499eba0a15275521bdafcdb2cd5.zip  | |
FULLPIPE: Implement StepArray::insertPoints()
Diffstat (limited to 'engines/fullpipe/statics.cpp')
| -rw-r--r-- | engines/fullpipe/statics.cpp | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 7e66132664..0b13e539d7 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -106,7 +106,16 @@ bool StepArray::gotoNextPoint() {  }  void StepArray::insertPoints(Common::Point **points, int pointsCount) { -	warning("STUB: StepArray::insertPoints()"); +	if (_currPointIndex + pointsCount >= _pointsCount) +		realloc(_points, sizeof(Common::Point *) * (_currPointIndex + pointsCount)); + +	_maxPointIndex = _currPointIndex + pointsCount; + +	for (int i = 0; i < pointsCount; i++) { +		_points[_currPointIndex + i] = new Common::Point; + +		*_points[_currPointIndex + i] = *points[i]; +	}  }  StaticANIObject::StaticANIObject() {  | 
