From 2b865f6fe2603f25c7554cb19609e4ca72205d38 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 12 Feb 2013 23:48:03 +0100 Subject: HOPKINS: Move some zone code to LinesManager --- engines/hopkins/globals.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'engines/hopkins/globals.cpp') diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index bd20b82ec9..516eb4d1ac 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -68,8 +68,6 @@ Globals::Globals() { // Initialise array properties for (int i = 0; i < 6; ++i) CACHE_BANQUE[i] = g_PTRNUL; - for (int i = 0; i < 106; ++i) - Common::fill((byte *)&ZONEP[i], (byte *)&ZONEP[i] + sizeof(ZonePItem), 0); for (int i = 0; i < 35; ++i) Common::fill((byte *)&Bqe_Anim[i], (byte *)&Bqe_Anim[i] + sizeof(BqeAnimItem), 0); for (int i = 0; i < 8; ++i) @@ -87,10 +85,6 @@ Globals::Globals() { for (int i = 0; i < 25; ++i) Common::fill((byte *)&Cache[i], (byte *)&Cache[i] + sizeof(CacheItem), 0); - for (int i = 0; i < 105; ++i) { - BOBZONE[i] = 0; - BOBZONE_FLAG[i] = false; - } for (int i = 0; i < 500; ++i) _spriteSize[i] = 0; for (int i = 0; i < 70; ++i) @@ -269,12 +263,6 @@ void Globals::clearAll() { _saveData = (Sauvegarde *)g_PTRNUL; _vm->_objectsManager._curObjectIndex = 0; - for (int idx = 0; idx < 105; ++idx) { - ZONEP[idx]._destX = 0; - ZONEP[idx]._destY = 0; - ZONEP[idx]._spriteIndex = 0; - } - _vm->_linesManager.clearAll(); _vm->_objectsManager.clearAll(); -- cgit v1.2.3