diff options
author | Eugene Sandulenko | 2013-07-13 11:51:36 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:17 +0300 |
commit | cb38892ce8dbb3841b5731554e63214803109b08 (patch) | |
tree | 06305fbdcdd39c99e4d78bd3d652aef5b1a9112f /engines/fullpipe/gfx.cpp | |
parent | d4e572843df01ce2307ca696ebc1db2775701205 (diff) | |
download | scummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.tar.gz scummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.tar.bz2 scummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.zip |
FULLPIPE: Continued on scene loading
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 531bfd92bf..74037da238 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -92,7 +92,21 @@ void Background::addPictureObject(PictureObject *pct) { } void Background::renumPictures(PictureObject *pct) { - warning("STUB: Background::renumPictures"); + int *buf = (int *)calloc(_picObjList.size() + 2, sizeof(int)); + + for (uint i = 0; i < _picObjList.size(); i++) { + if (pct->_id == ((PictureObject *)_picObjList[i])->_id) + buf[((PictureObject *)_picObjList[i])->_field_4] = 1; + } + + if (buf[pct->_field_4]) { + uint count; + for (count = 1; buf[count] && count < _picObjList.size() + 2; count++) + ; + pct->_field_4 = count; + } + + free(buf); } PictureObject::PictureObject() { |