Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.

svn-id: r33468
This commit is contained in:
Nicola Mettifogo 2008-07-31 12:26:12 +00:00
parent 538fdcc61a
commit 591973c827
8 changed files with 51 additions and 53 deletions

View file

@ -264,7 +264,6 @@ void Parallaction::freeLocation() {
_location._walkPoints.clear();
_gfx->clearGfxObjects(kGfxObjNormal);
freeBackground();
_location._programs.clear();
freeZones();
@ -284,7 +283,6 @@ void Parallaction::freeLocation() {
void Parallaction::freeBackground() {
_gfx->freeBackground();
_pathBuffer = 0;
}
@ -292,7 +290,7 @@ void Parallaction::freeBackground() {
void Parallaction::setBackground(const char* name, const char* mask, const char* path) {
_gfx->setBackground(kBackgroundLocation, name, mask, path);
_pathBuffer = &_gfx->_backgroundInfo.path;
_pathBuffer = &_gfx->_backgroundInfo->path;
return;
}