From b0f0a6cd92d922115916947929060096f91a19d5 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 24 Mar 2013 21:25:29 +0100 Subject: HOPKINS: Move two more variables to ObjectsManager, make them private --- engines/hopkins/objects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/hopkins/objects.cpp') diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index b0170b2df3..5bf8342488 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -88,6 +88,7 @@ ObjectsManager::ObjectsManager(HopkinsEngine *vm) { _lastDirection = DIR_NONE; _oldDirection = DIR_NONE; _oldDirectionSpriteIdx = 59; + _objectWidth = _objectHeight = 0; } ObjectsManager::~ObjectsManager() { @@ -130,8 +131,8 @@ byte *ObjectsManager::loadObjectFromFile(int objIndex, bool mode) { int width = ObjectsManager::getWidth(_vm->_globals->_objectDataBuf, idx); int height = ObjectsManager::getHeight(_vm->_globals->_objectDataBuf, idx); - _vm->_globals->_objectWidth = width; - _vm->_globals->_objectHeight = height; + _objectWidth = width; + _objectHeight = height; if (mode) { sprite_alone(_vm->_globals->_objectDataBuf, _vm->_eventsManager->_objectBuf, idx); -- cgit v1.2.3