TITANIC: CGameManager viewChange better named as roomChange

This commit is contained in:
Paul Gilbert 2017-06-11 16:19:54 -04:00
parent d272351055
commit 3be659b5c1
4 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ void CViewItem::leaveView(CViewItem *newView) {
if (newRoom != oldRoom) {
CGameManager *gm = getGameManager();
if (gm)
gm->viewChange();
gm->roomChange();
CLeaveRoomMsg roomMsg(oldRoom, newRoom);
roomMsg.execute(oldRoom, nullptr, MSGFLAG_SCAN);

View File

@ -256,7 +256,7 @@ void CGameManager::updateDiskTicksCount() {
_lastDiskTicksCount = g_vm->_events->getTicksCount();
}
void CGameManager::viewChange() {
void CGameManager::roomChange() {
delete _movie;
delete _movieSurface;

View File

@ -157,9 +157,9 @@ public:
void update();
/**
* Called when the view changes
* Called when the room changes
*/
void viewChange();
void roomChange();
/**
* Returns true if no transition is currently in progress

View File

@ -92,10 +92,10 @@ bool CFilesManager::scanForFile(const CString &name) {
if (fileExists(fname))
return true;
// Couldn't find file. Start by calling the game manager's viewChange
// Couldn't find file. Start by calling the game manager's roomChange
// method, which handles all active scene objects freeing their resources
if (_gameManager)
_gameManager->viewChange();
_gameManager->roomChange();
return false;
}